BottomNavigationBar
属性 |
释义 |
items |
Lisst底部导航按钮集合 |
iconSize |
icon |
currentIndex |
默认选中的tab |
onTap |
选中变化函数 |
fixedColor |
选中的颜色 |
type |
BottomNavigationBarType.fixed, BottomNavigationBarType.shifting |
eg: 创建tab
BottomNavigationBar跳转页面示例
- 首先在lib下创建pages目录,并创建tab对应的页面
- 将Tabs抽取出来并将页面引入
- main.dart