您现在的位置是:首页 >学无止境 >flutter修改bottomnavigationbar高度网站首页学无止境
flutter修改bottomnavigationbar高度
bottomNavigationBar: SizedBox(height: 65, child:BottomNavigationBar(
type: BottomNavigationBarType.fixed,
currentIndex: currentIndex,
selectedFontSize: 0.0,
unselectedFontSize: 0.0,
onTap: (int index) {
setState(() {
currentIndex = index;
controller.animateToPage(currentIndex, duration: Duration(milliseconds: 100), curve: Curves.easeInOut);
});
},
items: [
BottomNavigationBarItem(
icon: Image.asset("images/tab_icon1_d.png", width: 30,),
activeIcon: Image.asset("images/tab_icon1_s.png", width: 30),
label: "",
),
BottomNavigationBarItem(
icon: Image.asset("images/tab_icon2_d.png", width: 30),
activeIcon: Image.asset("images/tab_icon2_s.png", width: 30),
label: "",
),
BottomNavigationBarItem(
icon: Image.asset("images/tab_icon3_d.png", width: 30),
activeIcon: Image.asset("images/tab_icon3_s.png", width: 30),
label: "",
),
],
)),





U8W/U8W-Mini使用与常见问题解决
QT多线程的5种用法,通过使用线程解决UI主界面的耗时操作代码,防止界面卡死。...
stm32使用HAL库配置串口中断收发数据(保姆级教程)
分享几个国内免费的ChatGPT镜像网址(亲测有效)
Allegro16.6差分等长设置及走线总结