Loading topic
Navigator.push and Navigator.pop. After it, you can add go_router to a project, build a GoRouter, and attach it to the app. You can also diagnose the setup errors that come up most often.4 min readGoRoute describes a location. It covers the path syntax, how go_router matches a URL against your route list, and the rules that cause most startup errors. It assumes you can already create a GoRouter and pass it to MaterialApp.router, as the previous chapter showed.4 min readGoRouter with nested GoRoutes and attach it to MaterialApp.router. It covers the four calls you will use most often to move between screens, how each one changes the back stack, and the mistakes that follow from mixing them up.4 min readGoRouter setup and GoRoute definitions from the earlier chapters, and that you know go and push. Here you will learn how to put data into a location and read it back safely.4 min readGoRoute with a path and path parameters, and that you know the difference between go and push. If not, review the chapters on defining routes and on path and query parameters first.4 min readGoRouter and call context.go and context.push. Here you will see how go_router turns a nested route declaration into a stack of pages. That stack decides what the back button does.4 min readextra parameter of go, push and goNamed. This chapter shows how to use it, why it is fragile, and how to design screens that still work when it is missing. It assumes you know path and query parameters, and the difference between go and push4 min readGoRouter with GoRoute entries and how context.go differs from context.push. It also assumes you can write a ChangeNotifier. You will learn how redirect decides where a navigation ends up, how to protect routes by login state, and how to avoi5 min readGoRouter with a top-level redirect, and that you can build a ChangeNotifier. If a redirect is new to you, review the previous chapter first.4 min readGoRouter, define GoRoute paths, and tell go from push. It shows how to wrap several routes in one persistent layout, such as an app bar, a navigation bar, or a side rail, without rebuilding that layout on every navigation.4 min readGoRoute trees, use nested routes, and call context.go and context.push. It also assumes you know what a Navigator is and that a ShellRoute wraps child routes in a shared layout.4 min readGoRoute, call context.go and context.push, and read a basic ThemeData. It also assumes you know what an Animation<double> is.4 min readGoRoutes, navigate with go and push, and write a redirect. It covers what go_router does when a location matches no route, how to replace its default error screen, and how to deal with URLs that match a route but point at data that doesn't exist.4 min readGoRouter with nested routes, path parameters, and a top-level redirect, as covered in earlier chapters. Here you will see how an address from outside the app, such as a browser URL or a tapped link, becomes a screen stack.5 min readGoRouter, define nested GoRoutes with path and query parameters, and navigate with go and push. You should also know how to run a Dart command-line tool. Earlier chapters used string paths such as '/books/42'. This chapter replaces those strings wit4 min readtestWidgets and pumpWidget. It also assumes you know the GoRouter setup from the earlier chapters: redirect, refreshListenable, nested routes, and errorBuilder.3 min read