|
|
|
|
@ -94,37 +94,37 @@ class AppScaffold extends StatelessWidget {
|
|
|
|
|
appBar = preferredSize == 0
|
|
|
|
|
? appBarWidget
|
|
|
|
|
: PreferredSize(
|
|
|
|
|
child: appBarWidget,
|
|
|
|
|
preferredSize: Size.fromHeight(preferredSize));
|
|
|
|
|
child: appBarWidget,
|
|
|
|
|
preferredSize: Size.fromHeight(preferredSize));
|
|
|
|
|
} else {
|
|
|
|
|
appBar = this.appBarWidget;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return Scaffold(
|
|
|
|
|
backgroundColor:
|
|
|
|
|
backgroundColor ?? Theme.of(context).scaffoldBackgroundColor,
|
|
|
|
|
appBar: appBar,
|
|
|
|
|
body: (!Provider.of<ProjectViewModel>(context, listen: false).isLogin &&
|
|
|
|
|
isShowDecPage)
|
|
|
|
|
? NotAutPage(
|
|
|
|
|
title: appBarTitle,
|
|
|
|
|
description: description,
|
|
|
|
|
infoList: infoList,
|
|
|
|
|
imagesInfo: imagesInfo,
|
|
|
|
|
)
|
|
|
|
|
: baseViewModel != null
|
|
|
|
|
? NetworkBaseView(
|
|
|
|
|
child: buildBodyWidget(context),
|
|
|
|
|
baseViewModel: baseViewModel,
|
|
|
|
|
)
|
|
|
|
|
: buildBodyWidget(context),
|
|
|
|
|
bottomSheet: bottomSheet
|
|
|
|
|
backgroundColor:
|
|
|
|
|
backgroundColor ?? Theme.of(context).scaffoldBackgroundColor,
|
|
|
|
|
appBar: appBar,
|
|
|
|
|
body: (!Provider.of<ProjectViewModel>(context, listen: false).isLogin &&
|
|
|
|
|
isShowDecPage)
|
|
|
|
|
? NotAutPage(
|
|
|
|
|
title: appBarTitle,
|
|
|
|
|
description: description,
|
|
|
|
|
infoList: infoList,
|
|
|
|
|
imagesInfo: imagesInfo,
|
|
|
|
|
)
|
|
|
|
|
: baseViewModel != null
|
|
|
|
|
? NetworkBaseView(
|
|
|
|
|
child: buildBodyWidget(context),
|
|
|
|
|
baseViewModel: baseViewModel,
|
|
|
|
|
)
|
|
|
|
|
: buildBodyWidget(context),
|
|
|
|
|
bottomSheet: bottomSheet
|
|
|
|
|
|
|
|
|
|
//floatingActionButton: floatingActionButton ?? floatingActionButton,
|
|
|
|
|
// bottomNavigationBar:
|
|
|
|
|
// this.isBottomBar == true ? BottomBarSearch() : SizedBox()
|
|
|
|
|
//floatingActionButton: FloatingSearchButton(),
|
|
|
|
|
);
|
|
|
|
|
//floatingActionButton: floatingActionButton ?? floatingActionButton,
|
|
|
|
|
// bottomNavigationBar:
|
|
|
|
|
// this.isBottomBar == true ? BottomBarSearch() : SizedBox()
|
|
|
|
|
//floatingActionButton: FloatingSearchButton(),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
buildAppLoaderWidget(bool isLoading) {
|
|
|
|
|
@ -133,10 +133,9 @@ class AppScaffold extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
buildBodyWidget(context) {
|
|
|
|
|
// return body; //Stack(children: <Widget>[body, buildAppLoaderWidget(isLoading)]);
|
|
|
|
|
return Stack(children: <Widget>[
|
|
|
|
|
body,
|
|
|
|
|
isHelp==true && Provider.of<ProjectViewModel>(context, listen: false).havePrivilege(77) ? RobotIcon() : Container()
|
|
|
|
|
]);
|
|
|
|
|
//&& Provider.of<ProjectViewModel>(context, listen: false).havePrivilege(77) need to added
|
|
|
|
|
return Stack(
|
|
|
|
|
children: <Widget>[body, isHelp == true ? RobotIcon() : Container()]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|