© Fu Cheng 2019
F. ChengFlutter Recipeshttps://doi.org/10.1007/978-1-4842-4982-6_8

8. Page Navigation

Fu Cheng1 
(1)
Sandringham, Auckland, New Zealand
 

Flutter apps may have multiple screens or pages. Pages are groups of functionalities. The user navigates between different pages to use different functionalities. Concepts like pages are called routes in Flutter. Routes not only include full-screen pages but also modal dialogs and popups. Routes are managed by Navigator widget. This chapter discusses recipes related to page navigation in Flutter.

8.1 Implementing Basic Page Navigation

Problem

You want to have basic page navigation support.

Solution

Use Navigator.push() to navigate to a new route and Navigator.pop() to navigate to the previous route.

Discussion ...

Get Flutter Recipes: Mobile Development Solutions for iOS and Android now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.