|
|
|
|
@ -30,7 +30,7 @@ class AppScaffold extends StatelessWidget {
|
|
|
|
|
this.titleColor,
|
|
|
|
|
this.arrowColor,
|
|
|
|
|
this.appBarColor,
|
|
|
|
|
this.isAppBarGradient});
|
|
|
|
|
this.isAppBarGradient = false});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
@ -43,25 +43,22 @@ class AppScaffold extends StatelessWidget {
|
|
|
|
|
appBarColor ?? Theme.of(context).scaffoldBackgroundColor,
|
|
|
|
|
appBar: isShowAppBar && !isAppBarGradient
|
|
|
|
|
? AppBar(
|
|
|
|
|
elevation: 0,
|
|
|
|
|
backgroundColor: Theme
|
|
|
|
|
.of(context)
|
|
|
|
|
.appBarTheme
|
|
|
|
|
.color,
|
|
|
|
|
textTheme: TextTheme(
|
|
|
|
|
headline6: TextStyle(
|
|
|
|
|
color: titleColor ?? Colors.white,
|
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
|
),
|
|
|
|
|
title: Text(Utils.formatStringToPascalCase(appBarTitle)),
|
|
|
|
|
leading: Builder(
|
|
|
|
|
builder: (BuildContext context) {
|
|
|
|
|
return ArrowBack(
|
|
|
|
|
arrowColor: arrowColor,
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
centerTitle: true,
|
|
|
|
|
elevation: 0,
|
|
|
|
|
backgroundColor: Theme.of(context).appBarTheme.color,
|
|
|
|
|
textTheme: TextTheme(
|
|
|
|
|
headline6: TextStyle(
|
|
|
|
|
color: titleColor ?? Colors.white,
|
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
|
),
|
|
|
|
|
title: Text(Utils.formatStringToPascalCase(appBarTitle)),
|
|
|
|
|
leading: Builder(
|
|
|
|
|
builder: (BuildContext context) {
|
|
|
|
|
return ArrowBack(
|
|
|
|
|
arrowColor: arrowColor,
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
centerTitle: true,
|
|
|
|
|
// actions: <Widget>[
|
|
|
|
|
// IconButton(
|
|
|
|
|
// icon: Icon(FontAwesomeIcons.home),
|
|
|
|
|
@ -71,28 +68,28 @@ class AppScaffold extends StatelessWidget {
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
)
|
|
|
|
|
: isShowAppBar && isAppBarGradient ? GradientAppBar(
|
|
|
|
|
|
|
|
|
|
gradient: LINEAR_GRADIENT,
|
|
|
|
|
title: Text(
|
|
|
|
|
Utils.formatStringToPascalCase(appBarTitle),
|
|
|
|
|
style: TextStyle(color: Colors.white),
|
|
|
|
|
),
|
|
|
|
|
centerTitle: true,
|
|
|
|
|
leading: Builder(
|
|
|
|
|
builder: (BuildContext context) {
|
|
|
|
|
return ArrowBack(
|
|
|
|
|
arrowColor: arrowColor,
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
)
|
|
|
|
|
) : null,
|
|
|
|
|
)
|
|
|
|
|
: isShowAppBar && isAppBarGradient
|
|
|
|
|
? GradientAppBar(
|
|
|
|
|
gradient: LINEAR_GRADIENT,
|
|
|
|
|
title: Text(
|
|
|
|
|
Utils.formatStringToPascalCase(appBarTitle),
|
|
|
|
|
style: TextStyle(color: Colors.white),
|
|
|
|
|
),
|
|
|
|
|
centerTitle: true,
|
|
|
|
|
leading: Builder(
|
|
|
|
|
builder: (BuildContext context) {
|
|
|
|
|
return ArrowBack(
|
|
|
|
|
arrowColor: arrowColor,
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
))
|
|
|
|
|
: null,
|
|
|
|
|
body: baseViewModel != null
|
|
|
|
|
? NetworkBaseView(
|
|
|
|
|
child: buildBodyWidget(),
|
|
|
|
|
baseViewModel: baseViewModel,
|
|
|
|
|
)
|
|
|
|
|
child: buildBodyWidget(),
|
|
|
|
|
baseViewModel: baseViewModel,
|
|
|
|
|
)
|
|
|
|
|
: buildBodyWidget(),
|
|
|
|
|
bottomSheet: bottomSheet,
|
|
|
|
|
),
|
|
|
|
|
|