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 itemNameN;
int productID;
int quantity;
var quantity;
ItemsQuantitiesList(
{this.itemName, this.itemNameN, this.productID, this.quantity});

@ -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(),

Loading…
Cancel
Save