Mastering Flutter App Navigation: Auto Route and Navigator 2.0
summary
Auto Route replaces imperative Navigator 1.0 with a declarative Router API that fixes web back/forward issues, adds built‑in deep linking and nested tab stacks, and supports route guards. Demos use materialApp.router and routerConfig with a deepLinkBuilder, show web history working, demonstrate redirect routes and a guard implemented by AutoRouteGuard.onNavigation, and keep each tab’s navigation stack when switching. Migration is possible if 1.0 limitations matter. Auto Route Navigator 2.0
AI-written summary · about
chapters (14)
- 0:00Introduction and speaker background
- 2:46Imperative vs declarative navigation
- 7:14Problems with Navigator 1.0
- 10:50Introduction to Navigator 2.0
- 12:21Auto Route features overview
- 13:51Web support and redirect routes demo
- 16:55Route guards in Auto Route
- 19:33Nested navigation explained
- 21:38Nested navigation demo
- 23:50Deep linking with Auto Route
- 26:41Deep linking demo
- 30:17Migrating to Navigator 2.0
- 32:26Key takeaways and conclusion
- 33:14Q&A session
