diff --git a/circle_app/lib/app/home/view.dart b/circle_app/lib/app/home/view.dart index 464497e..9785199 100644 --- a/circle_app/lib/app/home/view.dart +++ b/circle_app/lib/app/home/view.dart @@ -18,31 +18,6 @@ class HomePage extends StatelessWidget { Container(), ]; - final List _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),