Skip to main content
InterviewHubPRO
Section Overview
Q41

Question 41 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

82%
Flutter & Dart (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

Navigation 2.0 (Router API) and `go_router`: Declarative routing and deep linking.

senior LevelRoutingHTTP & REST APIs

In Simple Words:

  • Imperative Navigator 1.0 (Navigator.push()): Simple stack manipulation, but brittle for browser history, nested bottom navigation bars, and deep linking.
  • Declarative Navigation 2.0 / go_router:
    • Treats navigation state as a pure function of application state.
    • Declarative route definitions with URL pattern matching (/users/:id).
    • Supports nested ShellRoute (keeps bottom navigation tab bar visible while navigating child sub-routes).