Nested Navigation
Learn to create navigation flows that are local to a widget.
Introduction to nested navigation
When we use the root navigator to handle our app’s navigation, we essentially work with a single stack of pages. This means that the navigation can branch out in only one direction. This is fine for most use cases, but it can become quite restricting if we want to preserve the navigation state of a particular group of widgets.
What does that mean? Let’s understand with an example!
Standard navigation example
Here, we have a standard navigation flow that uses the root navigator:
Get hands-on with 1400+ tech skills courses.