Flutter Navigator 2.0

Nov 8 2022 Dart 2.17.3, Flutter 3.0.2, Android Studio 2020.3

Part 2: Deep Dive Into Navigator 2.0

8. Create the Router Delegate

Episode complete

Play next episode

Save for later
About this episode
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 7. Use the New App State Next episode: 9. Use the App Router Delegate

This video Create the Router Delegate was last updated on Nov 8 2022

Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

You can unlock the rest of this video course, and our entire catalogue of books and videos, with a kodeco.com Professional subscription.

Episode 08 - Create the Router Delegate

We need to add a router to our -main.dart- file. For that we have to create our Router which will define the -RouterDelegate- Methods. Navigate to router directory in our -lib- folder, and create a new file named - book_router_delegate.dart - and create a new class in the file which extends RouterDelegate and Mixin ChangeNotifier and PopNavigatorRouterDelegateMixin. as follows.