Skip to content

Lesson 6: Navigation and routing

truyenjc edited this page Sep 25, 2020 · 3 revisions

Screens, Pages, Activities, ViewControllers. Different words, different code to make them, the same result. In Flutter, we get this same result using Navigators and Routes.

-via codemagic

1. What is Navigator widget?

  • Understanding about core concepts and classes for managing multiple screens: Route, Navigator and Material Page Route

2. Navigate basic using Navigator.push() and Navigator.pop()

  • Navigate to a new screen
  • Send data to a new screen
  • Return to the previous screen
  • Return data from a screen

3. Navigate with named routes

  • Setup routes
  • Navigate with named routes
  • Pass arguments to a named route
  • Pop to a specified screen

Clone this wiki locally