update apr scaffold

merge-requests/101/head
hussam al-habibeh 5 years ago
parent da5c95f33d
commit 979f04de81

@ -135,7 +135,7 @@ class ItemsQuantitiesList {
String itemName; String itemName;
String itemNameN; String itemNameN;
int productID; int productID;
int quantity; var quantity;
ItemsQuantitiesList( ItemsQuantitiesList(
{this.itemName, this.itemNameN, this.productID, this.quantity}); {this.itemName, this.itemNameN, this.productID, this.quantity});

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

Loading…
Cancel
Save