修改底部高度

This commit is contained in:
CYH 2023-06-13 11:19:44 +08:00
parent e581126eb4
commit c36d65a2e1

View File

@ -18,31 +18,6 @@ class HomePage extends StatelessWidget {
Container(),
];
final List<BottomNavigationBarItem> _bottomTabs = [
//icon部分的设置
BottomNavigationBarItem(
icon:Padding(padding: EdgeInsets.all(8),
child: Image.asset(getTabbarImage('msg_normal'),fit: BoxFit.cover,width: 25,height: 25)),
activeIcon:Padding(padding: EdgeInsets.all(8),
child: Image.asset(getTabbarImage('msg_selected'),fit: BoxFit.cover,width: 25,height: 25)),
label:''
),
BottomNavigationBarItem(
icon:Padding(padding: EdgeInsets.all(8),
child: Image.asset(getTabbarImage('circle_normal'),fit: BoxFit.cover,width: 25,height: 25)),
activeIcon:Padding(padding: EdgeInsets.all(8),
child: Image.asset(getTabbarImage('circle_selected'),fit: BoxFit.cover,width: 25,height: 25)),
label:''
),
BottomNavigationBarItem(
icon:Padding(padding: EdgeInsets.all(8),
child: Image.asset(getTabbarImage('mine_normal'),fit: BoxFit.cover,width: 25,height: 25)),
activeIcon:Padding(padding: EdgeInsets.all(8),
child: Image.asset(getTabbarImage('mine_selected'),fit: BoxFit.cover,width: 25,height: 25)),
label:''
)
];
@override
Widget build(BuildContext context) {
return GetBuilder(builder: (HomeLogic controller) {
@ -53,11 +28,13 @@ class HomePage extends StatelessWidget {
child: Scaffold(
// backgroundColor: Color.fromRGBO(244, 245, 245, 1.0),
bottomNavigationBar: Container(
height: Get.bottomBarHeight,
height: 49.sp + MediaQuery.of(context).padding.bottom,
width: Get.width,
padding: EdgeInsets.only(left: 50.sp,right: 50.sp),
// color: Colors.red,
padding: EdgeInsets.only(left: 50.sp,right: 50.sp,top: 8.sp),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
funcItem(0, 'msg', 0 == controller.currentIndex, controller),
funcItem(1, 'circle', 1 == controller.currentIndex, controller),