© 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. ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.