From e36e0ce0b7b07d413a72232e09c8ef6630e5d36e Mon Sep 17 00:00:00 2001 From: Sikander Saleem Date: Sun, 3 Oct 2021 14:50:39 +0300 Subject: [PATCH] h20 bottom nav bar bug fix (happen in release mode) --- .../bottom_navigation/bottom_nav_bar.dart | 33 ++++++------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/lib/widgets/bottom_navigation/bottom_nav_bar.dart b/lib/widgets/bottom_navigation/bottom_nav_bar.dart index d2ff467e..7f2785ad 100644 --- a/lib/widgets/bottom_navigation/bottom_nav_bar.dart +++ b/lib/widgets/bottom_navigation/bottom_nav_bar.dart @@ -70,29 +70,16 @@ class _BottomNavBarState extends State { name: TranslationBase.of(context).myFamily, ), if (widget.index == 0) - Expanded( - child: (widget.showHomeIcon) - ? SizedBox( - child: BottomNavigationItem( - icon: Icons.home_outlined, - activeIcon: Icons.home_outlined, - changeIndex: _changeIndex, - index: widget.index, - currentIndex: 2, - name: TranslationBase.of(context).home, - ), - ) - : SizedBox( - height: 50, - child: Column( - mainAxisSize: MainAxisSize.min, - mainAxisAlignment: MainAxisAlignment.center, - children: [ - SizedBox(height: 22), - ], - ), - ), - ), + (widget.showHomeIcon) + ? BottomNavigationItem( + icon: Icons.home_outlined, + activeIcon: Icons.home_outlined, + changeIndex: _changeIndex, + index: widget.index, + currentIndex: 2, + name: TranslationBase.of(context).home, + ) + : Expanded(child: SizedBox()), if (widget.index != 0 && projectViewModel.havePrivilege(34)) BottomNavigationItem( icon: Icons.home_outlined,