Loading topic
GoRouter, GoRoute, locations, path and query parameters, and the difference between go and push.5 min readGoRouter, declare a GoRoute, and call context.go. It also assumes you know what Scaffold and StatelessWidget are. Tabs and shells come in later chapters. Here you learn how to shape the route tree they sit on. A StatefulShellBranch holds the same `Go5 min readGoRouter, GoRoute, context.go) and the Flutter Navigator widget. It explains what a navigator key is, why gorouter has a root navigator, and how keys decide where a route is drawn. Later chapters on StatefulShellRoute depend on this mod5 min readGoRouter with nested GoRoute objects and navigate with context.go. It also assumes you know that Flutter's Navigator keeps a stack of pages. You will build a two-tab app with ShellRoute, watch it lose state, and learn why. That explains why the rest of5 min readGoRouter with nested GoRoute objects, you know what a navigator key is, and you have seen why a plain ShellRoute loses per-tab history. Here you build the smallest working tabbed app with StatefulShellRoute.indexedStack and look at what it creates at runt5 min readGoRouter with nested GoRoute objects and that you know what StatefulShellRoute.indexedStack and StatefulNavigationShell do at a high level. Here we look at the object that represents one tab: StatefulShellBranch.4 min readStatefulShellRoute.indexedStack and its branches. This chapter covers the widget that go_router passes to your builder, StatefulNavigationShell, and how to build a tab scaffold around it. It assumes you can write a StatelessWidget, use Scaffold, and read a `GoR5 min readStatefulShellRoute to change tabs. It assumes you can already build a StatefulShellRoute.indexedStack with two branches and a ScaffoldWithNavBar widget, and that you know what context.go does. Here the focus is on StatefulNavigationShell.goBranch, 5 min readStatefulShellRoute.indexedStack: what is stored, where it lives, and when it is lost. It assumes you can already build a basic shell with branches and a NavigationBar as in the earlier chapters. It also assumes you know that a Flutter5 min readStatefulShellRoute.indexedStack with a NavigationBar, as in the previous chapters. You should know GoRoute, context.go, and how a Navigator 5 min readStatefulShellRoute.indexedStack, two or more StatefulShellBranch objects, and a shell widget that wraps a StatefulNavigationShell. It also assumes you know what a GlobalKey<NavigatorState> is and why 5 min readStatefulShellRoute.indexedStack with StatefulShellBranch tabs, and that you know GoRouter, GoRoute and context.go. Here you will add sign-in guards to that app. You will also see how redirects interact with tabs, branch stacks and deep links.5 min readStatefulShellRoute.indexedStack, StatefulShellBranch and StatefulNavigationShell.goBranch. It also assumes you know that each branch owns its own Navigator. Here you will change how those branch navigators are arranged and shown on5 min readStatefulShellRoute.indexedStack. It assumes you know StatefulShellBranch, StatefulNavigationShell.goBranch, nested detail routes, and parentNavigatorKey. It collects the mistakes that cost the most time and gives a repeatable way to find 5 min read