GetX Navigation
Learn how GetX navigation works at a basic level.
We'll cover the following
- Set up the navigation with GetMaterialApp
- Defining named routes
- Navigating
- Navigate to page
- Navigating back
- Navigate to page and remove the current one
- Remove the current one and navigate to new page
- Remove pages until condition is satisfied
- Remove pages until condition is satisfied and navigate to a new page
- Remove all pages and navigate to a new page
- Remove a number of pages
- Hands-on example
- Navigator 2.0
Set up the navigation with GetMaterialApp
Setting up navigation with GetX is a one-step process of replacing MaterialApp
with GetMaterialApp
. MaterialApp
is the fundamental Flutter widget that lays the foundation of most applications. It enables navigation, theming, locale, and keyboard shortcut systems in our apps. GetMaterialApp
is a wrapper around MaterialApp
that adds its own API layer on top of Flutter’s vanilla navigation system.
Get hands-on with 1400+ tech skills courses.