<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Go-Router on Website of SauceWu</title><link>https://saucewu.github.io/tags/go-router/</link><description>Recent content in Go-Router on Website of SauceWu</description><generator>Hugo -- gohugo.io</generator><language>zh</language><lastBuildDate>Sat, 20 Dec 2025 16:00:00 +0000</lastBuildDate><atom:link href="https://saucewu.github.io/tags/go-router/index.xml" rel="self" type="application/rss+xml"/><item><title>StatefulShellRoute 踩坑：为什么 Loading 只遮半屏，pop 还会误关页面</title><link>https://saucewu.github.io/posts/statefulshellroute-%E8%B8%A9%E5%9D%91%E4%B8%BA%E4%BB%80%E4%B9%88-loading-%E5%8F%AA%E9%81%AE%E5%8D%8A%E5%B1%8Fpop-%E8%BF%98%E4%BC%9A%E8%AF%AF%E5%85%B3%E9%A1%B5%E9%9D%A2/</link><pubDate>Sat, 20 Dec 2025 16:00:00 +0000</pubDate><guid>https://saucewu.github.io/posts/statefulshellroute-%E8%B8%A9%E5%9D%91%E4%B8%BA%E4%BB%80%E4%B9%88-loading-%E5%8F%AA%E9%81%AE%E5%8D%8A%E5%B1%8Fpop-%E8%BF%98%E4%BC%9A%E8%AF%AF%E5%85%B3%E9%A1%B5%E9%9D%A2/</guid><description>&lt;h1 id="statefulshellroute-踩坑为什么-loading-只遮半屏pop-还会误关页面"&gt;StatefulShellRoute 踩坑：为什么 Loading 只遮半屏，pop 还会误关页面&lt;/h1&gt;
&lt;h2 id="目录"&gt;目录&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;一、问题现象&lt;/li&gt;
&lt;li&gt;二、根因不是 Dialog，而是 Navigator 变多了&lt;/li&gt;
&lt;li&gt;三、为什么只遮住半屏&lt;/li&gt;
&lt;li&gt;四、为什么 pop 之后页面被关了&lt;/li&gt;
&lt;li&gt;五、正确做法：全局浮层挂到 root navigator&lt;/li&gt;
&lt;li&gt;六、一个更稳的封装思路&lt;/li&gt;
&lt;li&gt;七、总结&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="一问题现象"&gt;一、问题现象&lt;/h2&gt;
&lt;p&gt;我在用 &lt;code&gt;go_router + StatefulShellRoute&lt;/code&gt; 做多 Tab 导航时，遇到了一个很烦的坑：&lt;/p&gt;</description></item><item><title>Flutter 路由方案对比：原生 Router 与 go_router</title><link>https://saucewu.github.io/posts/flutter-%E8%B7%AF%E7%94%B1%E6%96%B9%E6%A1%88%E5%AF%B9%E6%AF%94%E5%8E%9F%E7%94%9F-router-%E4%B8%8E-go_router/</link><pubDate>Mon, 10 Nov 2025 14:00:00 +0000</pubDate><guid>https://saucewu.github.io/posts/flutter-%E8%B7%AF%E7%94%B1%E6%96%B9%E6%A1%88%E5%AF%B9%E6%AF%94%E5%8E%9F%E7%94%9F-router-%E4%B8%8E-go_router/</guid><description>&lt;h1 id="flutter-路由方案对比原生-router-与-go_router"&gt;Flutter 路由方案对比：原生 Router 与 go_router&lt;/h1&gt;
&lt;h2 id="目录"&gt;目录&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;一、为什么 Flutter 路由总让人觉得“有点拧巴”&lt;/li&gt;
&lt;li&gt;二、先区分三套东西：Navigator、原生 Router、go_router&lt;/li&gt;
&lt;li&gt;三、原生 Router 的价值到底是什么&lt;/li&gt;
&lt;li&gt;四、go_router 做了什么封装&lt;/li&gt;
&lt;li&gt;五、go_router 的独特优势&lt;/li&gt;
&lt;li&gt;六、什么时候该选原生 Router，什么时候该选 go_router&lt;/li&gt;
&lt;li&gt;七、常见误区&lt;/li&gt;
&lt;li&gt;八、总结&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="一为什么-flutter-路由总让人觉得有点拧巴"&gt;一、为什么 Flutter 路由总让人觉得“有点拧巴”&lt;/h2&gt;
&lt;p&gt;很多人第一次接触 Flutter 路由时，会觉得：&lt;/p&gt;</description></item></channel></rss>