Loading topic
Navigator. This chapter explains what the Navigator is, how it stores screens, and how the framework decides what to draw. The next chapters build on this model, so it is worth getting it right before you write any push calls.6 min readNavigator.push and Navigator.pop: what each call does to the route stack, how to write the call correctly, and the errors that show up most often. It assumes you know Dart syntax including async and await. It also assumes you know basic Flutter widgets (StatelessWidget,5 min readasync and await, build screens with Scaffold and AppBar, and push and pop routes with Navigator. Here you will learn the ways to give a destination screen the data it needs, and the mistakes that come with each way.4 min readasync and await, build basic Flutter widgets such as Scaffold and AppBar, and push and pop routes with Navigator. It covers how a screen sends a value back to the screen that opened it, and the errors that come with that pattern.4 min readNavigator, pass data through constructors, and read async and await code. It covers Flutter's named routes, the errors they usually cause, and the point where you should stop using them.5 min readNavigator.pushNamed takes a route name and optional arguments, and have registered a static routes table in MaterialApp. It covers what to do when that table is not enough.3 min readPopScope. It assumes you can push and pop routes with Navigator, that you know how async and await work, and that you can write a StatefulWidget with setState.5 min readNavigator, know what MaterialPageRoute does, and are comfortable with basic animation widgets such as FadeTransition. You don't need to know AnimationController in depth. The Navigator creates and disposes the controller for you.5 min readNavigator, give routes names through RouteSettings, and write a StatefulWidget with didChangeDependencies and dispose. For the go_router section, you should also know what a GoRouter configuration looks like.4 min readNavigator.push and Navigator.pop, MaterialPageRoute, and basic StatefulWidget and ChangeNotifier usage. You should also be comfortable with Future and async. It explains why Flutter has a second navigation model, what the pieces of the Router API do, and h5 min readgo_router to a Flutter app and configure it. It assumes you know Dart syntax including async and await, basic widgets such as Scaffold and AppBar, and what BuildContext is. You should also have seen Navigator.push and Navigator.pop in earlier chapters, 5 min readGoRouter with nested GoRoute entries (the previous chapter), you know basic Dart async code, and you know what BuildContext is.4 min readGoRouter with MaterialApp.router, as in the previous chapter, and that you know ChangeNotifier and async/`awa4 min readgo_router setup and path parameters. You should know how GoRoute, context.go, and context.push work, and what a Navigator is.4 min readredirect callback, as covered in the earlier chapters. You also need a basic idea of what an Android manifest and an iOS entitlement are.4 min readNavigator or Router inside a test harness, so pushes, pops, and redirec3 min read