|
|
|
@ -132,7 +132,7 @@ class AppScaffold extends StatelessWidget {
|
|
|
|
|
)
|
|
|
|
|
: null,
|
|
|
|
|
bottomSheet: bottomSheet,
|
|
|
|
|
bottomNavigationBar: isShowBottomNavBar
|
|
|
|
|
bottomNavigationBar: isShowBottomNavBar && !getIsShowDecPageValue(context) && !isPharmacy
|
|
|
|
|
? BottomNavBar(
|
|
|
|
|
changeIndex: changeCurrentTab,
|
|
|
|
|
index: currentTab,
|
|
|
|
@ -142,8 +142,7 @@ class AppScaffold extends StatelessWidget {
|
|
|
|
|
top: true,
|
|
|
|
|
bottom: true,
|
|
|
|
|
child:
|
|
|
|
|
(!Provider.of<ProjectViewModel>(context, listen: false).isLogin &&
|
|
|
|
|
isShowDecPage)
|
|
|
|
|
getIsShowDecPageValue(context)
|
|
|
|
|
? NotAutPage(
|
|
|
|
|
title: title ?? appBarTitle,
|
|
|
|
|
description: description,
|
|
|
|
@ -162,6 +161,11 @@ class AppScaffold extends StatelessWidget {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getIsShowDecPageValue(context){
|
|
|
|
|
return (!Provider.of<ProjectViewModel>(context, listen: false).isLogin &&
|
|
|
|
|
isShowDecPage);
|
|
|
|
|
}
|
|
|
|
|
buildAppLoaderWidget(bool isLoading) {
|
|
|
|
|
return isLoading ? AppLoaderWidget() : Container();
|
|
|
|
|
}
|
|
|
|
|