Flutter BottomNavigationBar with Multiple Navigators
This is the source code for my article:
In this example each tab has its own navigation stack. This is so that we don’t lose the navigation history when switching tabs.
This is a very common use case for a lot of apps.
How is it built?
- Create an app with a
- In the
Scaffoldbody, create a
Stackwith one child for each tab.
- Each child is an
Offstagewidget with a child
- Don’t forget to handle Android back navigation with
Read the full story on my article:
- Brian Egan: for suggesting to use