👩💻 Join our community of thousands of amazing developers!
ottomNavigatorBar 是 Scaffold 组件中的,底部的导航栏。BottomNavigatorBaritems:BottomNavigatorBarItem()label:标签名称icon:图标backgroundColor:背景颜色,在 BottomNavigatorBar 的type设置为BottomNavigationBarType.shifting时生效currentIndex:当前选项卡的索引,当前选项卡会高亮backgroundColor:导航栏背景图片elevation:阴影fixedColor:选中的 item 字体颜色和图标颜色onTap:点击选项时触发的函数,需要传入 index (点击选项的索引),(index){xxx},用于更新当前索引...