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.