h20 bottom nav bar bug fix (happen in release mode)

merge-update-with-lab-changes
Sikander Saleem 4 years ago
parent 7b8093b7ba
commit e36e0ce0b7

@ -70,29 +70,16 @@ class _BottomNavBarState extends State<BottomNavBar> {
name: TranslationBase.of(context).myFamily, name: TranslationBase.of(context).myFamily,
), ),
if (widget.index == 0) if (widget.index == 0)
Expanded( (widget.showHomeIcon)
child: (widget.showHomeIcon) ? BottomNavigationItem(
? SizedBox(
child: BottomNavigationItem(
icon: Icons.home_outlined, icon: Icons.home_outlined,
activeIcon: Icons.home_outlined, activeIcon: Icons.home_outlined,
changeIndex: _changeIndex, changeIndex: _changeIndex,
index: widget.index, index: widget.index,
currentIndex: 2, currentIndex: 2,
name: TranslationBase.of(context).home, name: TranslationBase.of(context).home,
),
) )
: SizedBox( : Expanded(child: SizedBox()),
height: 50,
child: Column(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
SizedBox(height: 22),
],
),
),
),
if (widget.index != 0 && projectViewModel.havePrivilege(34)) if (widget.index != 0 && projectViewModel.havePrivilege(34))
BottomNavigationItem( BottomNavigationItem(
icon: Icons.home_outlined, icon: Icons.home_outlined,

Loading…
Cancel
Save