|
|
|
|
@ -30,7 +30,7 @@ class AppScaffold extends StatelessWidget {
|
|
|
|
|
this.titleColor,
|
|
|
|
|
this.arrowColor,
|
|
|
|
|
this.appBarColor,
|
|
|
|
|
this.isAppBarGradient});
|
|
|
|
|
this.isAppBarGradient = false});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
@ -44,10 +44,7 @@ class AppScaffold extends StatelessWidget {
|
|
|
|
|
appBar: isShowAppBar && !isAppBarGradient
|
|
|
|
|
? AppBar(
|
|
|
|
|
elevation: 0,
|
|
|
|
|
backgroundColor: Theme
|
|
|
|
|
.of(context)
|
|
|
|
|
.appBarTheme
|
|
|
|
|
.color,
|
|
|
|
|
backgroundColor: Theme.of(context).appBarTheme.color,
|
|
|
|
|
textTheme: TextTheme(
|
|
|
|
|
headline6: TextStyle(
|
|
|
|
|
color: titleColor ?? Colors.white,
|
|
|
|
|
@ -72,8 +69,8 @@ class AppScaffold extends StatelessWidget {
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
)
|
|
|
|
|
: isShowAppBar && isAppBarGradient ? GradientAppBar(
|
|
|
|
|
|
|
|
|
|
: isShowAppBar && isAppBarGradient
|
|
|
|
|
? GradientAppBar(
|
|
|
|
|
gradient: LINEAR_GRADIENT,
|
|
|
|
|
title: Text(
|
|
|
|
|
Utils.formatStringToPascalCase(appBarTitle),
|
|
|
|
|
@ -86,8 +83,8 @@ class AppScaffold extends StatelessWidget {
|
|
|
|
|
arrowColor: arrowColor,
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
)
|
|
|
|
|
) : null,
|
|
|
|
|
))
|
|
|
|
|
: null,
|
|
|
|
|
body: baseViewModel != null
|
|
|
|
|
? NetworkBaseView(
|
|
|
|
|
child: buildBodyWidget(),
|
|
|
|
|
|