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

08. Create the Router Delegate

Episode complete

Play next episode

Next
About this episode
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 07. Use the New App State Next episode: 09. Use the App Router Delegate

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

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

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.