|
|
|
@ -19,11 +19,12 @@ class AppBottomNavigationBar extends StatelessWidget {
|
|
|
|
bool isEngineer = (Provider.of<UserProvider>(context, listen: false).user?.type) == UsersTypes.engineer;
|
|
|
|
bool isEngineer = (Provider.of<UserProvider>(context, listen: false).user?.type) == UsersTypes.engineer;
|
|
|
|
bool isUserFMS = Provider.of<SettingProvider>(context, listen: false).isUserFMS;
|
|
|
|
bool isUserFMS = Provider.of<SettingProvider>(context, listen: false).isUserFMS;
|
|
|
|
bool commissioningEng = context.userProvider.isCommissioningEngineer;
|
|
|
|
bool commissioningEng = context.userProvider.isCommissioningEngineer;
|
|
|
|
|
|
|
|
bool isHouseKeeper = context.userProvider.isHouseKeeper;
|
|
|
|
|
|
|
|
|
|
|
|
List<NavItemModel> navItems = [
|
|
|
|
List<NavItemModel> navItems = [
|
|
|
|
NavItemModel(0, "overview", context.translation.overview),
|
|
|
|
NavItemModel(0, "overview", context.translation.overview),
|
|
|
|
NavItemModel(1, "request_icon", context.translation.workOrder),
|
|
|
|
NavItemModel(1, "request_icon", context.translation.workOrder),
|
|
|
|
if (!commissioningEng) NavItemModel(2, "add_icon", context.translation.calendar, showLabel: false),
|
|
|
|
if (!commissioningEng && !isHouseKeeper) NavItemModel(2, "add_icon", context.translation.calendar, showLabel: false),
|
|
|
|
NavItemModel(3, "assets", context.translation.assets),
|
|
|
|
NavItemModel(3, "assets", context.translation.assets),
|
|
|
|
NavItemModel(4, "contact", context.translation.contact),
|
|
|
|
NavItemModel(4, "contact", context.translation.contact),
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|