|
|
|
|
@ -70,29 +70,16 @@ class _BottomNavBarState extends State<BottomNavBar> {
|
|
|
|
|
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: <Widget>[
|
|
|
|
|
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,
|
|
|
|
|
|