项目
在 GitHub 查看
bizz84/nested-navigation-demo-flutter
关于
使用 BottomNavigationBar 实现嵌套导航。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Flutter BottomNavigationBar with Multiple Navigators
This is the source code for my article:
Preview

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
Scaffoldand aBottomNavigationBar. - In the
Scaffoldbody, create aStackwith one child for each tab. - Each child is an
Offstagewidget with a childNavigator. - Don't forget to handle Android back navigation with
WillPopScope.
Read the full story on my article:
Credits
- Brian Egan: for suggesting to use
Stack+Offstage&Navigatorwidgets.
License: MIT
探索相关项目
加载中…