|
|
|
|
@ -113,34 +113,38 @@ class AppScaffold extends StatelessWidget {
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
AppGlobal.context = context;
|
|
|
|
|
|
|
|
|
|
bool isUserNotLogin = (!Provider.of<ProjectViewModel>(context, listen: false).isLogin && isShowDecPage);
|
|
|
|
|
return Scaffold(
|
|
|
|
|
backgroundColor: backgroundColor ?? Theme.of(context).scaffoldBackgroundColor,
|
|
|
|
|
appBar: showNewAppBar
|
|
|
|
|
? NewAppBarWidget(
|
|
|
|
|
title: appBarTitle,
|
|
|
|
|
showTitle: showNewAppBarTitle,
|
|
|
|
|
showDropDown: showDropDown,
|
|
|
|
|
dropdownIndexValue: dropdownIndexValue,
|
|
|
|
|
dropDownList: dropDownList ?? [],
|
|
|
|
|
dropDownIndexChange: dropDownIndexChange,
|
|
|
|
|
)
|
|
|
|
|
: (isShowAppBar
|
|
|
|
|
? appBar = AppBarWidget(
|
|
|
|
|
appBarTitle: appBarTitle,
|
|
|
|
|
appBarIcons: appBarIcons,
|
|
|
|
|
showHomeAppBarIcon: showHomeAppBarIcon,
|
|
|
|
|
isPharmacy: isPharmacy,
|
|
|
|
|
showPharmacyCart: showPharmacyCart,
|
|
|
|
|
isOfferPackages: isOfferPackages,
|
|
|
|
|
showOfferPackagesCart: showOfferPackagesCart,
|
|
|
|
|
isShowDecPage: isShowDecPage,
|
|
|
|
|
appBar: isUserNotLogin
|
|
|
|
|
? null
|
|
|
|
|
: (showNewAppBar
|
|
|
|
|
? NewAppBarWidget(
|
|
|
|
|
title: appBarTitle,
|
|
|
|
|
showTitle: showNewAppBarTitle,
|
|
|
|
|
showDropDown: showDropDown,
|
|
|
|
|
dropdownIndexValue: dropdownIndexValue,
|
|
|
|
|
dropDownList: dropDownList ?? [],
|
|
|
|
|
dropDownIndexChange: dropDownIndexChange,
|
|
|
|
|
)
|
|
|
|
|
: null),
|
|
|
|
|
: (isShowAppBar
|
|
|
|
|
? appBar = AppBarWidget(
|
|
|
|
|
appBarTitle: appBarTitle,
|
|
|
|
|
appBarIcons: appBarIcons,
|
|
|
|
|
showHomeAppBarIcon: showHomeAppBarIcon,
|
|
|
|
|
isPharmacy: isPharmacy,
|
|
|
|
|
showPharmacyCart: showPharmacyCart,
|
|
|
|
|
isOfferPackages: isOfferPackages,
|
|
|
|
|
showOfferPackagesCart: showOfferPackagesCart,
|
|
|
|
|
isShowDecPage: isShowDecPage,
|
|
|
|
|
)
|
|
|
|
|
: null)),
|
|
|
|
|
bottomSheet: bottomSheet,
|
|
|
|
|
body: SafeArea(
|
|
|
|
|
top: true,
|
|
|
|
|
bottom: true,
|
|
|
|
|
child: (!Provider.of<ProjectViewModel>(context, listen: false).isLogin && isShowDecPage)
|
|
|
|
|
child: isUserNotLogin
|
|
|
|
|
? NotAutPage(
|
|
|
|
|
title: title ?? appBarTitle,
|
|
|
|
|
description: description,
|
|
|
|
|
|