From the course: Flutter Essential Training: Build for Multiple Platforms

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Navigating from one screen to another

Navigating from one screen to another

- [Instructor] Mobile apps or even web apps are not just a one page application. They lead the user from one page to another depending on the user interactions. Simply put, navigation is a core concept in application. And since our application has two screens at the moment, the button on the login screen has to navigate the user to the chat page and the log out button on the chat page will navigate the user back to the login page. These chat widgets and login widgets are these full screen elements that we often refer to as pages or screens. But in Flutter, we call them routes. So in Flutter's language, we navigate from one route to another, and this is handled by this navigator widget. This navigator manages a stack of routes and provides two ways for managing the stack. One is the declarative API and other is the imperative API. In this course, we will only be looking at the imperative API. Like how we push and pop…

Contents