v1.12.13+hotfix.9 stable build for 2.0.0
This commit is contained in:
parent
5622795e9d
commit
e1dfbb31b1
@ -1 +1 @@
|
|||||||
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"device_info","path":"/Users/anthony/Documents/config/flutter/.pub-cache/hosted/pub.dartlang.org/device_info-0.4.2+1/","dependencies":[]},{"name":"flutter_money_formatter","path":"/Users/anthony/Documents/config/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_money_formatter-0.8.3/","dependencies":[]},{"name":"flutter_web_browser","path":"/Users/anthony/Documents/config/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_web_browser-0.11.0/","dependencies":[]},{"name":"package_info","path":"/Users/anthony/Documents/config/flutter/.pub-cache/hosted/pub.dartlang.org/package_info-0.4.0+16/","dependencies":[]},{"name":"path_provider","path":"/Users/anthony/Documents/config/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.3.0/","dependencies":[]},{"name":"shared_preferences","path":"/Users/anthony/Documents/config/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.6+3/","dependencies":[]},{"name":"sqflite","path":"/Users/anthony/Documents/config/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.1.6+5/","dependencies":[]},{"name":"woosignal_stripe","path":"/Users/anthony/Documents/config/flutter/.pub-cache/hosted/pub.dartlang.org/woosignal_stripe-0.0.4/","dependencies":[]}],"android":[{"name":"device_info","path":"/Users/anthony/Documents/config/flutter/.pub-cache/hosted/pub.dartlang.org/device_info-0.4.2+1/","dependencies":[]},{"name":"flutter_money_formatter","path":"/Users/anthony/Documents/config/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_money_formatter-0.8.3/","dependencies":[]},{"name":"flutter_web_browser","path":"/Users/anthony/Documents/config/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_web_browser-0.11.0/","dependencies":[]},{"name":"package_info","path":"/Users/anthony/Documents/config/flutter/.pub-cache/hosted/pub.dartlang.org/package_info-0.4.0+16/","dependencies":[]},{"name":"path_provider","path":"/Users/anthony/Documents/config/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.3.0/","dependencies":[]},{"name":"shared_preferences","path":"/Users/anthony/Documents/config/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.6+3/","dependencies":[]},{"name":"sqflite","path":"/Users/anthony/Documents/config/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.1.6+5/","dependencies":[]},{"name":"woosignal_stripe","path":"/Users/anthony/Documents/config/flutter/.pub-cache/hosted/pub.dartlang.org/woosignal_stripe-0.0.4/","dependencies":[]}],"macos":[{"name":"shared_preferences_macos","path":"/Users/anthony/Documents/config/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+6/","dependencies":[]}],"linux":[],"windows":[],"web":[{"name":"shared_preferences_web","path":"/Users/anthony/Documents/config/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+4/","dependencies":[]}]},"dependencyGraph":[{"name":"device_info","dependencies":[]},{"name":"flutter_money_formatter","dependencies":[]},{"name":"flutter_web_browser","dependencies":[]},{"name":"package_info","dependencies":[]},{"name":"path_provider","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_macos","shared_preferences_web"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]},{"name":"sqflite","dependencies":[]},{"name":"woosignal_stripe","dependencies":[]}],"date_created":"2020-04-09 03:26:04.771408","version":"1.18.0-5.0.pre.38"}
|
{"_info":"// This is a generated file; do not edit or check into version control.","dependencyGraph":[{"name":"device_info","dependencies":[]},{"name":"flutter_money_formatter","dependencies":[]},{"name":"flutter_web_browser","dependencies":[]},{"name":"package_info","dependencies":[]},{"name":"path_provider","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_macos","shared_preferences_web"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]},{"name":"sqflite","dependencies":[]},{"name":"woosignal_stripe","dependencies":[]}]}
|
||||||
@ -40,7 +40,7 @@ TextTheme textThemeAccent() {
|
|||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontFamily: appFontFamily,
|
fontFamily: appFontFamily,
|
||||||
fontWeight: FontWeight.w800),
|
fontWeight: FontWeight.w800),
|
||||||
bodyText1: new TextStyle(
|
body2: new TextStyle(
|
||||||
color: HexColor("#606060"),
|
color: HexColor("#606060"),
|
||||||
fontFamily: appFontFamily,
|
fontFamily: appFontFamily,
|
||||||
fontWeight: FontWeight.w700),
|
fontWeight: FontWeight.w700),
|
||||||
@ -89,7 +89,7 @@ TextTheme textThemePrimary() {
|
|||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontFamily: appFontFamily,
|
fontFamily: appFontFamily,
|
||||||
fontWeight: FontWeight.w800),
|
fontWeight: FontWeight.w800),
|
||||||
bodyText1: new TextStyle(
|
body2: new TextStyle(
|
||||||
color: HexColor("#606060"),
|
color: HexColor("#606060"),
|
||||||
fontFamily: appFontFamily,
|
fontFamily: appFontFamily,
|
||||||
fontWeight: FontWeight.w700),
|
fontWeight: FontWeight.w700),
|
||||||
@ -122,7 +122,7 @@ TextTheme textThemeMain() {
|
|||||||
headline: new TextStyle(color: Colors.black, fontFamily: appFontFamily),
|
headline: new TextStyle(color: Colors.black, fontFamily: appFontFamily),
|
||||||
title: new TextStyle(color: Colors.black, fontFamily: appFontFamily),
|
title: new TextStyle(color: Colors.black, fontFamily: appFontFamily),
|
||||||
subhead: new TextStyle(color: Colors.black, fontFamily: appFontFamily),
|
subhead: new TextStyle(color: Colors.black, fontFamily: appFontFamily),
|
||||||
bodyText1: new TextStyle(color: Colors.black, fontFamily: appFontFamily),
|
body2: new TextStyle(color: Colors.black, fontFamily: appFontFamily),
|
||||||
body1: new TextStyle(color: Colors.black, fontFamily: appFontFamily),
|
body1: new TextStyle(color: Colors.black, fontFamily: appFontFamily),
|
||||||
caption: new TextStyle(
|
caption: new TextStyle(
|
||||||
color: Colors.redAccent, fontSize: 16, fontFamily: appFontFamily),
|
color: Colors.redAccent, fontSize: 16, fontFamily: appFontFamily),
|
||||||
@ -142,7 +142,7 @@ TextTheme textThemeAppBar() {
|
|||||||
fontFamily: appFontFamily,
|
fontFamily: appFontFamily,
|
||||||
fontWeight: FontWeight.w900),
|
fontWeight: FontWeight.w900),
|
||||||
subhead: new TextStyle(color: Colors.black, fontFamily: appFontFamily),
|
subhead: new TextStyle(color: Colors.black, fontFamily: appFontFamily),
|
||||||
bodyText1: new TextStyle(color: Colors.black, fontFamily: appFontFamily),
|
body2: new TextStyle(color: Colors.black, fontFamily: appFontFamily),
|
||||||
body1: new TextStyle(color: Colors.black, fontFamily: appFontFamily),
|
body1: new TextStyle(color: Colors.black, fontFamily: appFontFamily),
|
||||||
caption: new TextStyle(color: Colors.black, fontFamily: appFontFamily),
|
caption: new TextStyle(color: Colors.black, fontFamily: appFontFamily),
|
||||||
button: new TextStyle(color: Colors.black, fontFamily: appFontFamily),
|
button: new TextStyle(color: Colors.black, fontFamily: appFontFamily),
|
||||||
|
|||||||
@ -198,7 +198,11 @@ double strCal({@required String sum}) {
|
|||||||
Future<double> workoutShippingCostWC({@required String sum}) async {
|
Future<double> workoutShippingCostWC({@required String sum}) async {
|
||||||
List<CartLineItem> cartLineItem = await Cart.getInstance.getCart();
|
List<CartLineItem> cartLineItem = await Cart.getInstance.getCart();
|
||||||
sum = sum.replaceAllMapped(defaultRegex(r'\[qty\]', strict: true), (replace) {
|
sum = sum.replaceAllMapped(defaultRegex(r'\[qty\]', strict: true), (replace) {
|
||||||
return cartLineItem.map((f) => f.quantity).toList().reduce((i,d) => i+d).toString();
|
return cartLineItem
|
||||||
|
.map((f) => f.quantity)
|
||||||
|
.toList()
|
||||||
|
.reduce((i, d) => i + d)
|
||||||
|
.toString();
|
||||||
});
|
});
|
||||||
|
|
||||||
String orderTotal = await Cart.getInstance.getSubtotal();
|
String orderTotal = await Cart.getInstance.getSubtotal();
|
||||||
@ -264,7 +268,11 @@ Future<double> workoutShippingCostWC({@required String sum}) async {
|
|||||||
Future<double> workoutShippingClassCostWC(
|
Future<double> workoutShippingClassCostWC(
|
||||||
{@required String sum, List<CartLineItem> cartLineItem}) async {
|
{@required String sum, List<CartLineItem> cartLineItem}) async {
|
||||||
sum = sum.replaceAllMapped(defaultRegex(r'\[qty\]', strict: true), (replace) {
|
sum = sum.replaceAllMapped(defaultRegex(r'\[qty\]', strict: true), (replace) {
|
||||||
return cartLineItem.map((f) => f.quantity).toList().reduce((i,d) => i+d).toString();
|
return cartLineItem
|
||||||
|
.map((f) => f.quantity)
|
||||||
|
.toList()
|
||||||
|
.reduce((i, d) => i + d)
|
||||||
|
.toString();
|
||||||
});
|
});
|
||||||
|
|
||||||
String orderTotal = await Cart.getInstance.getSubtotal();
|
String orderTotal = await Cart.getInstance.getSubtotal();
|
||||||
|
|||||||
@ -23,6 +23,8 @@
|
|||||||
const app_name = "MyApp";
|
const app_name = "MyApp";
|
||||||
|
|
||||||
const app_key = "Your App Key";
|
const app_key = "Your App Key";
|
||||||
|
// Your App key from WooSignal
|
||||||
|
// link: https://woosignal.com/dashboard/apps
|
||||||
|
|
||||||
const app_logo_url = "https://woosignal.com/images/120x120_woosignal.png";
|
const app_logo_url = "https://woosignal.com/images/120x120_woosignal.png";
|
||||||
|
|
||||||
@ -31,9 +33,15 @@ const app_privacy_url = "https://yourdomain.com/privacy";
|
|||||||
|
|
||||||
/*<! ------ STRIPE (OPTIONAL) ------!>*/
|
/*<! ------ STRIPE (OPTIONAL) ------!>*/
|
||||||
|
|
||||||
const app_stripe_account = "Your Stripe Account"; // Your StripeAccount key from WooSignal
|
const app_stripe_account = "Your Stripe Key";
|
||||||
|
// Your StripeAccount key from WooSignal
|
||||||
|
// link: https://woosignal.com/dashboard
|
||||||
|
|
||||||
const app_stripe_live_mode = false; // SET true for live payments
|
const app_stripe_live_mode = false;
|
||||||
|
// For Live Payments follow the below steps
|
||||||
|
// #1 SET the above to true for live payments
|
||||||
|
// #2 Next visit https://woosignal.com/dashboard
|
||||||
|
// #3 Then change "Environment for Stripe" to Live mode
|
||||||
|
|
||||||
/*<! ------ APP CURRENCY ------!>*/
|
/*<! ------ APP CURRENCY ------!>*/
|
||||||
|
|
||||||
|
|||||||
@ -42,7 +42,7 @@ class _AboutPageState extends State<AboutPage> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
title: Text(trans(context, "About"),
|
title: Text(trans(context, "About"),
|
||||||
style: Theme.of(context).primaryTextTheme.subtitle1),
|
style: Theme.of(context).primaryTextTheme.subhead),
|
||||||
centerTitle: true,
|
centerTitle: true,
|
||||||
),
|
),
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
@ -86,7 +86,7 @@ class _AboutPageState extends State<AboutPage> {
|
|||||||
": " +
|
": " +
|
||||||
snapshot.data.version,
|
snapshot.data.version,
|
||||||
style:
|
style:
|
||||||
Theme.of(context).primaryTextTheme.bodyText1),
|
Theme.of(context).primaryTextTheme.body2),
|
||||||
padding: EdgeInsets.only(top: 15, bottom: 15),
|
padding: EdgeInsets.only(top: 15, bottom: 15),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -109,7 +109,7 @@ class _BrowseCategoryPageState extends State<BrowseCategoryPage> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Text(trans(context, "Browse"),
|
Text(trans(context, "Browse"),
|
||||||
style: Theme.of(context).primaryTextTheme.subtitle1),
|
style: Theme.of(context).primaryTextTheme.subhead),
|
||||||
Text(_selectedCategory.name,
|
Text(_selectedCategory.name,
|
||||||
style: Theme.of(context).primaryTextTheme.title)
|
style: Theme.of(context).primaryTextTheme.title)
|
||||||
],
|
],
|
||||||
|
|||||||
@ -94,7 +94,7 @@ class _BrowseSearchState extends State<BrowseSearchPage> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Text(trans(context, "Search results for"),
|
Text(trans(context, "Search results for"),
|
||||||
style: Theme.of(context).primaryTextTheme.subtitle1),
|
style: Theme.of(context).primaryTextTheme.subhead),
|
||||||
Text("\"" + _search + "\"",
|
Text("\"" + _search + "\"",
|
||||||
style: Theme.of(context).primaryTextTheme.title)
|
style: Theme.of(context).primaryTextTheme.title)
|
||||||
],
|
],
|
||||||
|
|||||||
@ -161,7 +161,7 @@ class _CartPageState extends State<CartPage> {
|
|||||||
child: Align(
|
child: Align(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
child: Text(trans(context, "Clear Cart"),
|
child: Text(trans(context, "Clear Cart"),
|
||||||
style: Theme.of(context).primaryTextTheme.bodyText1),
|
style: Theme.of(context).primaryTextTheme.body2),
|
||||||
padding: EdgeInsets.only(right: 8),
|
padding: EdgeInsets.only(right: 8),
|
||||||
),
|
),
|
||||||
alignment: Alignment.centerLeft,
|
alignment: Alignment.centerLeft,
|
||||||
@ -190,7 +190,7 @@ class _CartPageState extends State<CartPage> {
|
|||||||
alignment: Alignment.center),
|
alignment: Alignment.center),
|
||||||
Padding(
|
Padding(
|
||||||
child: Text(trans(context, "Empty Basket"),
|
child: Text(trans(context, "Empty Basket"),
|
||||||
style: Theme.of(context).primaryTextTheme.bodyText2),
|
style: Theme.of(context).primaryTextTheme.body1),
|
||||||
padding: EdgeInsets.only(top: 10),
|
padding: EdgeInsets.only(top: 10),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
|||||||
@ -131,7 +131,7 @@ class CheckoutConfirmationPageState extends State<CheckoutConfirmationPage> {
|
|||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Center(
|
Center(
|
||||||
child: Text(trans(context, "Checkout"),
|
child: Text(trans(context, "Checkout"),
|
||||||
style: Theme.of(context).primaryTextTheme.subtitle1),
|
style: Theme.of(context).primaryTextTheme.subhead),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Container(
|
child: Container(
|
||||||
@ -251,7 +251,7 @@ class CheckoutConfirmationPageState extends State<CheckoutConfirmationPage> {
|
|||||||
padding: const EdgeInsets.only(top: 15),
|
padding: const EdgeInsets.only(top: 15),
|
||||||
child: Text(
|
child: Text(
|
||||||
trans(context, "One moment") + "...",
|
trans(context, "One moment") + "...",
|
||||||
style: Theme.of(context).primaryTextTheme.subtitle1,
|
style: Theme.of(context).primaryTextTheme.subhead,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
|||||||
@ -94,7 +94,7 @@ class _CheckoutDetailsPageState extends State<CheckoutDetailsPage> {
|
|||||||
return InkWell(
|
return InkWell(
|
||||||
child: Container(
|
child: Container(
|
||||||
child: Text(strName["name"],
|
child: Text(strName["name"],
|
||||||
style: Theme.of(context).primaryTextTheme.bodyText1),
|
style: Theme.of(context).primaryTextTheme.body2),
|
||||||
padding: EdgeInsets.only(top: 25, bottom: 25),
|
padding: EdgeInsets.only(top: 25, bottom: 25),
|
||||||
),
|
),
|
||||||
splashColor: Colors.grey,
|
splashColor: Colors.grey,
|
||||||
@ -123,8 +123,11 @@ class _CheckoutDetailsPageState extends State<CheckoutDetailsPage> {
|
|||||||
resizeToAvoidBottomPadding: false,
|
resizeToAvoidBottomPadding: false,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
title: Text(trans(context, "Billing & Shipping Details"),
|
title: Text(
|
||||||
style: Theme.of(context).primaryTextTheme.subtitle1),
|
trans(context, "Billing & Shipping Details"),
|
||||||
|
style: Theme.of(context).primaryTextTheme.subhead,
|
||||||
|
),
|
||||||
|
centerTitle: true,
|
||||||
),
|
),
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
minimum: safeAreaDefault(),
|
minimum: safeAreaDefault(),
|
||||||
@ -146,33 +149,43 @@ class _CheckoutDetailsPageState extends State<CheckoutDetailsPage> {
|
|||||||
Row(
|
Row(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Flexible(
|
Flexible(
|
||||||
child: wsTextEditingRow(context,
|
child: wsTextEditingRow(
|
||||||
heading: trans(context, "First Name"),
|
context,
|
||||||
controller: _txtBillingFirstName,
|
heading: trans(context, "First Name"),
|
||||||
shouldAutoFocus: true),
|
controller: _txtBillingFirstName,
|
||||||
|
shouldAutoFocus: true,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
Flexible(
|
Flexible(
|
||||||
child: wsTextEditingRow(context,
|
child: wsTextEditingRow(
|
||||||
heading: trans(context, "Last Name"),
|
context,
|
||||||
controller: _txtBillingLastName),
|
heading: trans(context, "Last Name"),
|
||||||
|
controller: _txtBillingLastName,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
),
|
),
|
||||||
wsTextEditingRow(context,
|
wsTextEditingRow(
|
||||||
heading: trans(context, "Address Line"),
|
context,
|
||||||
controller: _txtBillingAddressLine),
|
heading: trans(context, "Address Line"),
|
||||||
|
controller: _txtBillingAddressLine,
|
||||||
|
),
|
||||||
Row(children: <Widget>[
|
Row(children: <Widget>[
|
||||||
Flexible(
|
Flexible(
|
||||||
child: wsTextEditingRow(context,
|
child: wsTextEditingRow(
|
||||||
heading: trans(context, "City"),
|
context,
|
||||||
controller: _txtBillingCity),
|
heading: trans(context, "City"),
|
||||||
|
controller: _txtBillingCity,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
Flexible(
|
Flexible(
|
||||||
child: wsTextEditingRow(context,
|
child: wsTextEditingRow(
|
||||||
heading: trans(context, "Postal code"),
|
context,
|
||||||
controller: _txtBillingPostalCode),
|
heading: trans(context, "Postal code"),
|
||||||
|
controller: _txtBillingPostalCode,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
]),
|
]),
|
||||||
Row(
|
Row(
|
||||||
@ -228,7 +241,7 @@ class _CheckoutDetailsPageState extends State<CheckoutDetailsPage> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Text(trans(context, "Remember my details"),
|
Text(trans(context, "Remember my details"),
|
||||||
style: Theme.of(context).primaryTextTheme.bodyText1),
|
style: Theme.of(context).primaryTextTheme.body2),
|
||||||
Checkbox(
|
Checkbox(
|
||||||
value: valRememberDetails,
|
value: valRememberDetails,
|
||||||
onChanged: (bool value) {
|
onChanged: (bool value) {
|
||||||
@ -266,6 +279,7 @@ class _CheckoutDetailsPageState extends State<CheckoutDetailsPage> {
|
|||||||
CheckoutSession.getInstance.clearBillingAddress();
|
CheckoutSession.getInstance.clearBillingAddress();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CheckoutSession.getInstance.shippingType = null;
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|||||||
@ -43,7 +43,7 @@ class _CheckoutPaymentTypePageState extends State<CheckoutPaymentTypePage> {
|
|||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
title: Text(trans(context, "Payment Method"),
|
title: Text(trans(context, "Payment Method"),
|
||||||
style: Theme.of(context).primaryTextTheme.subtitle1),
|
style: Theme.of(context).primaryTextTheme.subhead),
|
||||||
automaticallyImplyLeading: false,
|
automaticallyImplyLeading: false,
|
||||||
centerTitle: true,
|
centerTitle: true,
|
||||||
),
|
),
|
||||||
|
|||||||
@ -178,8 +178,13 @@ class _CheckoutShippingTypePageState extends State<CheckoutShippingTypePage> {
|
|||||||
resizeToAvoidBottomPadding: false,
|
resizeToAvoidBottomPadding: false,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
title: Text(trans(context, "Shipping Methods"),
|
title: Text(
|
||||||
style: Theme.of(context).primaryTextTheme.subtitle1),
|
trans(
|
||||||
|
context,
|
||||||
|
"Shipping Methods",
|
||||||
|
),
|
||||||
|
style: Theme.of(context).primaryTextTheme.subhead,
|
||||||
|
),
|
||||||
automaticallyImplyLeading: false,
|
automaticallyImplyLeading: false,
|
||||||
centerTitle: true,
|
centerTitle: true,
|
||||||
),
|
),
|
||||||
|
|||||||
@ -60,7 +60,7 @@ class _CheckoutStatusState extends State<CheckoutStatusPage> {
|
|||||||
Padding(
|
Padding(
|
||||||
child: Text(
|
child: Text(
|
||||||
trans(context, "Order Status"),
|
trans(context, "Order Status"),
|
||||||
style: Theme.of(context).primaryTextTheme.subtitle1,
|
style: Theme.of(context).primaryTextTheme.subhead,
|
||||||
),
|
),
|
||||||
padding: EdgeInsets.only(bottom: 15),
|
padding: EdgeInsets.only(bottom: 15),
|
||||||
),
|
),
|
||||||
@ -71,14 +71,14 @@ class _CheckoutStatusState extends State<CheckoutStatusPage> {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
trans(context, "Your transaction details"),
|
trans(context, "Your transaction details"),
|
||||||
style: Theme.of(context).primaryTextTheme.bodyText2,
|
style: Theme.of(context).primaryTextTheme.body1,
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
trans(context, "Order Ref") +
|
trans(context, "Order Ref") +
|
||||||
". #" +
|
". #" +
|
||||||
_order.id.toString(),
|
_order.id.toString(),
|
||||||
style: Theme.of(context).primaryTextTheme.bodyText1,
|
style: Theme.of(context).primaryTextTheme.body2,
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@ -104,7 +104,7 @@ class _CheckoutStatusState extends State<CheckoutStatusPage> {
|
|||||||
child: Padding(
|
child: Padding(
|
||||||
child: Text(
|
child: Text(
|
||||||
trans(context, "Items"),
|
trans(context, "Items"),
|
||||||
style: Theme.of(context).primaryTextTheme.subtitle1,
|
style: Theme.of(context).primaryTextTheme.subhead,
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
),
|
),
|
||||||
padding: EdgeInsets.all(8),
|
padding: EdgeInsets.all(8),
|
||||||
@ -130,21 +130,21 @@ class _CheckoutStatusState extends State<CheckoutStatusPage> {
|
|||||||
Text(lineItem.name,
|
Text(lineItem.name,
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.primaryTextTheme
|
.primaryTextTheme
|
||||||
.bodyText1,
|
.body2,
|
||||||
softWrap: false,
|
softWrap: false,
|
||||||
maxLines: 2,
|
maxLines: 2,
|
||||||
overflow: TextOverflow.ellipsis),
|
overflow: TextOverflow.ellipsis),
|
||||||
Text("x" + lineItem.quantity.toString(),
|
Text("x" + lineItem.quantity.toString(),
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.primaryTextTheme
|
.primaryTextTheme
|
||||||
.bodyText2),
|
.body1),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
formatStringCurrency(
|
formatStringCurrency(
|
||||||
total: lineItem.total.toString()),
|
total: lineItem.total.toString()),
|
||||||
style: Theme.of(context).primaryTextTheme.bodyText1)
|
style: Theme.of(context).primaryTextTheme.body2)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
decoration: BoxDecoration(color: Colors.white),
|
decoration: BoxDecoration(color: Colors.white),
|
||||||
|
|||||||
@ -46,7 +46,7 @@ class _ErrorPageState extends State<ErrorPage> {
|
|||||||
padding: const EdgeInsets.all(16.0),
|
padding: const EdgeInsets.all(16.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
trans(context, "Sorry, something went wrong"),
|
trans(context, "Sorry, something went wrong"),
|
||||||
style: Theme.of(context).primaryTextTheme.bodyText2,
|
style: Theme.of(context).primaryTextTheme.body1,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@ -114,13 +114,14 @@ class _HomePageState extends State<HomePage> {
|
|||||||
decoration: new BoxDecoration(
|
decoration: new BoxDecoration(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
borderRadius: new BorderRadius.only(
|
borderRadius: new BorderRadius.only(
|
||||||
topLeft: const Radius.circular(10.0),
|
topLeft: const Radius.circular(10.0),
|
||||||
topRight: const Radius.circular(10.0),),
|
topRight: const Radius.circular(10.0),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Text(trans(context, "Categories"),
|
Text(trans(context, "Categories"),
|
||||||
style: Theme.of(context).primaryTextTheme.headline4,
|
style: Theme.of(context).primaryTextTheme.display1,
|
||||||
textAlign: TextAlign.left),
|
textAlign: TextAlign.left),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: new ListView.builder(
|
child: new ListView.builder(
|
||||||
@ -197,10 +198,10 @@ class _HomePageState extends State<HomePage> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Text(trans(context, "Shop") + " / ",
|
Text(trans(context, "Shop") + " / ",
|
||||||
style: Theme.of(context).primaryTextTheme.subtitle1),
|
style: Theme.of(context).primaryTextTheme.subhead),
|
||||||
Text(
|
Text(
|
||||||
trans(context, "Newest"),
|
trans(context, "Newest"),
|
||||||
style: Theme.of(context).primaryTextTheme.bodyText2,
|
style: Theme.of(context).primaryTextTheme.body1,
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@ -209,7 +210,7 @@ class _HomePageState extends State<HomePage> {
|
|||||||
height: 60,
|
height: 60,
|
||||||
child: Text(
|
child: Text(
|
||||||
trans(context, "Browse categories"),
|
trans(context, "Browse categories"),
|
||||||
style: Theme.of(context).primaryTextTheme.bodyText1,
|
style: Theme.of(context).primaryTextTheme.body2,
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
_modalBottomSheetMenu();
|
_modalBottomSheetMenu();
|
||||||
|
|||||||
@ -36,7 +36,7 @@ class _HomeMenuPageState extends State<HomeMenuPage> {
|
|||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
elevation: 0.0,
|
elevation: 0.0,
|
||||||
title: Text(trans(context, "Menu"),
|
title: Text(trans(context, "Menu"),
|
||||||
style: Theme.of(context).primaryTextTheme.subtitle1),
|
style: Theme.of(context).primaryTextTheme.subhead),
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
icon: Icon(Icons.close),
|
icon: Icon(Icons.close),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
|||||||
@ -84,38 +84,40 @@ class _ProductDetailState extends State<ProductDetailPage> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _modalBottomSheetOptionsForAttribute(int attributeIndex) {
|
void _modalBottomSheetOptionsForAttribute(int attributeIndex) {
|
||||||
wsModalBottom(context,
|
wsModalBottom(
|
||||||
title: trans(context, "Select a") +
|
context,
|
||||||
" " +
|
title: trans(context, "Select a") +
|
||||||
_product.attributes[attributeIndex].name,
|
" " +
|
||||||
bodyWidget: Expanded(
|
_product.attributes[attributeIndex].name,
|
||||||
child: ListView.separated(
|
bodyWidget: Expanded(
|
||||||
itemCount: _product.attributes[attributeIndex].options.length,
|
child: ListView.separated(
|
||||||
separatorBuilder: (BuildContext context, int index) => Divider(),
|
itemCount: _product.attributes[attributeIndex].options.length,
|
||||||
itemBuilder: (BuildContext context, int index) {
|
separatorBuilder: (BuildContext context, int index) => Divider(),
|
||||||
return ListTile(
|
itemBuilder: (BuildContext context, int index) {
|
||||||
title: Text(_product.attributes[attributeIndex].options[index],
|
return ListTile(
|
||||||
style: Theme.of(context).primaryTextTheme.subtitle1),
|
title: Text(_product.attributes[attributeIndex].options[index],
|
||||||
trailing: (_tmpAttributeObj.isNotEmpty &&
|
style: Theme.of(context).primaryTextTheme.subhead),
|
||||||
_tmpAttributeObj.containsKey(attributeIndex) &&
|
trailing: (_tmpAttributeObj.isNotEmpty &&
|
||||||
_tmpAttributeObj[attributeIndex]["value"] ==
|
_tmpAttributeObj.containsKey(attributeIndex) &&
|
||||||
_product.attributes[attributeIndex].options[index])
|
_tmpAttributeObj[attributeIndex]["value"] ==
|
||||||
? Icon(Icons.check, color: Colors.blueAccent)
|
_product.attributes[attributeIndex].options[index])
|
||||||
: null,
|
? Icon(Icons.check, color: Colors.blueAccent)
|
||||||
onTap: () {
|
: null,
|
||||||
_tmpAttributeObj[attributeIndex] = {
|
onTap: () {
|
||||||
"name": _product.attributes[attributeIndex].name,
|
_tmpAttributeObj[attributeIndex] = {
|
||||||
"value": _product.attributes[attributeIndex].options[index]
|
"name": _product.attributes[attributeIndex].name,
|
||||||
};
|
"value": _product.attributes[attributeIndex].options[index]
|
||||||
Navigator.pop(context, () {});
|
};
|
||||||
Navigator.pop(context);
|
Navigator.pop(context, () {});
|
||||||
_modalBottomSheetAttributes();
|
Navigator.pop(context);
|
||||||
},
|
_modalBottomSheetAttributes();
|
||||||
);
|
},
|
||||||
},
|
);
|
||||||
),
|
},
|
||||||
flex: 1,
|
),
|
||||||
),);
|
flex: 1,
|
||||||
|
),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
_itemAddToCart({CartLineItem cartLineItem}) {
|
_itemAddToCart({CartLineItem cartLineItem}) {
|
||||||
@ -142,11 +144,11 @@ class _ProductDetailState extends State<ProductDetailPage> {
|
|||||||
itemBuilder: (BuildContext context, int index) {
|
itemBuilder: (BuildContext context, int index) {
|
||||||
return ListTile(
|
return ListTile(
|
||||||
title: Text(_product.attributes[index].name,
|
title: Text(_product.attributes[index].name,
|
||||||
style: Theme.of(context).primaryTextTheme.subtitle1),
|
style: Theme.of(context).primaryTextTheme.subhead),
|
||||||
subtitle: (_tmpAttributeObj.isNotEmpty &&
|
subtitle: (_tmpAttributeObj.isNotEmpty &&
|
||||||
_tmpAttributeObj.containsKey(index))
|
_tmpAttributeObj.containsKey(index))
|
||||||
? Text(_tmpAttributeObj[index]["value"],
|
? Text(_tmpAttributeObj[index]["value"],
|
||||||
style: Theme.of(context).primaryTextTheme.bodyText1)
|
style: Theme.of(context).primaryTextTheme.body2)
|
||||||
: Text(trans(context, "Select a") +
|
: Text(trans(context, "Select a") +
|
||||||
" " +
|
" " +
|
||||||
_product.attributes[index].name),
|
_product.attributes[index].name),
|
||||||
@ -177,14 +179,14 @@ class _ProductDetailState extends State<ProductDetailPage> {
|
|||||||
findProductVariation() == null)
|
findProductVariation() == null)
|
||||||
? trans(context, "This variation is unavailable")
|
? trans(context, "This variation is unavailable")
|
||||||
: trans(context, "Choose your options"))),
|
: trans(context, "Choose your options"))),
|
||||||
style: Theme.of(context).primaryTextTheme.subtitle1),
|
style: Theme.of(context).primaryTextTheme.subhead),
|
||||||
Text(
|
Text(
|
||||||
(findProductVariation() != null
|
(findProductVariation() != null
|
||||||
? findProductVariation().stockStatus != "instock"
|
? findProductVariation().stockStatus != "instock"
|
||||||
? trans(context, "Out of stock")
|
? trans(context, "Out of stock")
|
||||||
: ""
|
: ""
|
||||||
: ""),
|
: ""),
|
||||||
style: Theme.of(context).primaryTextTheme.subtitle1,
|
style: Theme.of(context).primaryTextTheme.subhead,
|
||||||
),
|
),
|
||||||
wsPrimaryButton(context, title: trans(context, "Add to cart"),
|
wsPrimaryButton(context, title: trans(context, "Add to cart"),
|
||||||
action: () {
|
action: () {
|
||||||
@ -321,7 +323,7 @@ class _ProductDetailState extends State<ProductDetailPage> {
|
|||||||
child: Text(
|
child: Text(
|
||||||
_product.name,
|
_product.name,
|
||||||
style:
|
style:
|
||||||
Theme.of(context).primaryTextTheme.bodyText1,
|
Theme.of(context).primaryTextTheme.body2,
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
maxLines: 2,
|
maxLines: 2,
|
||||||
@ -338,7 +340,7 @@ class _ProductDetailState extends State<ProductDetailPage> {
|
|||||||
total: _product.price),
|
total: _product.price),
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.primaryTextTheme
|
.primaryTextTheme
|
||||||
.headline2
|
.display1
|
||||||
.copyWith(
|
.copyWith(
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
),
|
),
|
||||||
@ -378,7 +380,7 @@ class _ProductDetailState extends State<ProductDetailPage> {
|
|||||||
trans(context, "Full description"),
|
trans(context, "Full description"),
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.primaryTextTheme
|
.primaryTextTheme
|
||||||
.bodyText2
|
.body1
|
||||||
.copyWith(fontSize: 14),
|
.copyWith(fontSize: 14),
|
||||||
textAlign: TextAlign.right,
|
textAlign: TextAlign.right,
|
||||||
),
|
),
|
||||||
@ -432,7 +434,7 @@ class _ProductDetailState extends State<ProductDetailPage> {
|
|||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Text(
|
Text(
|
||||||
"Quantity",
|
"Quantity",
|
||||||
style: Theme.of(context).primaryTextTheme.bodyText1,
|
style: Theme.of(context).primaryTextTheme.body2,
|
||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
@ -452,7 +454,7 @@ class _ProductDetailState extends State<ProductDetailPage> {
|
|||||||
Text(
|
Text(
|
||||||
_quantityIndicator.toString(),
|
_quantityIndicator.toString(),
|
||||||
style:
|
style:
|
||||||
Theme.of(context).primaryTextTheme.bodyText1,
|
Theme.of(context).primaryTextTheme.body2,
|
||||||
),
|
),
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
@ -483,7 +485,7 @@ class _ProductDetailState extends State<ProductDetailPage> {
|
|||||||
_quantityIndicator)
|
_quantityIndicator)
|
||||||
.toString()),
|
.toString()),
|
||||||
style:
|
style:
|
||||||
Theme.of(context).primaryTextTheme.headline2,
|
Theme.of(context).primaryTextTheme.display1,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
),
|
),
|
||||||
alignment: Alignment.centerLeft,
|
alignment: Alignment.centerLeft,
|
||||||
|
|||||||
@ -56,7 +56,11 @@ stripePay(context,
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (rsp == null) {
|
if (rsp == null) {
|
||||||
showEdgeAlertWith(context,title: "Oops!", desc: "Something went wrong, please try again.", icon: Icons.payment, style: EdgeAlertStyle.WARNING);
|
showEdgeAlertWith(context,
|
||||||
|
title: "Oops!",
|
||||||
|
desc: "Something went wrong, please try again.",
|
||||||
|
icon: Icons.payment,
|
||||||
|
style: EdgeAlertStyle.WARNING);
|
||||||
state.reloadState(showLoader: false);
|
state.reloadState(showLoader: false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -28,7 +28,7 @@ Widget wsSecondaryButton(BuildContext context,
|
|||||||
child: RaisedButton(
|
child: RaisedButton(
|
||||||
padding: EdgeInsets.all(10),
|
padding: EdgeInsets.all(10),
|
||||||
child: Text(title,
|
child: Text(title,
|
||||||
style: Theme.of(context).primaryTextTheme.bodyText1,
|
style: Theme.of(context).primaryTextTheme.body2,
|
||||||
textAlign: TextAlign.center),
|
textAlign: TextAlign.center),
|
||||||
onPressed: action,
|
onPressed: action,
|
||||||
color: HexColor("#f6f6f9"),
|
color: HexColor("#f6f6f9"),
|
||||||
@ -44,7 +44,7 @@ Widget wsLinkButton(BuildContext context,
|
|||||||
child: MaterialButton(
|
child: MaterialButton(
|
||||||
padding: EdgeInsets.all(10),
|
padding: EdgeInsets.all(10),
|
||||||
child: Text(title,
|
child: Text(title,
|
||||||
style: Theme.of(context).primaryTextTheme.bodyText1,
|
style: Theme.of(context).primaryTextTheme.body2,
|
||||||
textAlign: TextAlign.left),
|
textAlign: TextAlign.left),
|
||||||
onPressed: action,
|
onPressed: action,
|
||||||
elevation: 0),
|
elevation: 0),
|
||||||
|
|||||||
@ -27,7 +27,7 @@ Widget wsCartIcon(BuildContext context) {
|
|||||||
else
|
else
|
||||||
return new Text(
|
return new Text(
|
||||||
snapshot.data.length.toString(),
|
snapshot.data.length.toString(),
|
||||||
style: Theme.of(context).primaryTextTheme.bodyText1,
|
style: Theme.of(context).primaryTextTheme.body2,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -14,7 +14,7 @@ Widget wsMenuItem(BuildContext context,
|
|||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
leading,
|
leading,
|
||||||
Text(" " + title,
|
Text(" " + title,
|
||||||
style: Theme.of(context).primaryTextTheme.bodyText2),
|
style: Theme.of(context).primaryTextTheme.body1),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@ -37,7 +37,7 @@ Widget wsRow2Text(BuildContext context, {String text1, String text2}) {
|
|||||||
child: Text(text2,
|
child: Text(text2,
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.primaryTextTheme
|
.primaryTextTheme
|
||||||
.bodyText1
|
.body2
|
||||||
.copyWith(fontSize: 16, color: Colors.black87)),
|
.copyWith(fontSize: 16, color: Colors.black87)),
|
||||||
),
|
),
|
||||||
flex: 3,
|
flex: 3,
|
||||||
@ -50,7 +50,7 @@ Widget wsNoResults(BuildContext context) {
|
|||||||
return Column(
|
return Column(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Text(trans(context, "No results"),
|
Text(trans(context, "No results"),
|
||||||
style: Theme.of(context).primaryTextTheme.bodyText2),
|
style: Theme.of(context).primaryTextTheme.body1),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -70,7 +70,7 @@ Widget wsCheckoutRow(BuildContext context,
|
|||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Padding(
|
Padding(
|
||||||
child: Text(heading,
|
child: Text(heading,
|
||||||
style: Theme.of(context).primaryTextTheme.bodyText2),
|
style: Theme.of(context).primaryTextTheme.body1),
|
||||||
padding: EdgeInsets.only(bottom: 8),
|
padding: EdgeInsets.only(bottom: 8),
|
||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
@ -84,7 +84,7 @@ Widget wsCheckoutRow(BuildContext context,
|
|||||||
leadImage,
|
leadImage,
|
||||||
Container(
|
Container(
|
||||||
child: Text(leadTitle,
|
child: Text(leadTitle,
|
||||||
style: Theme.of(context).primaryTextTheme.subtitle1,
|
style: Theme.of(context).primaryTextTheme.subhead,
|
||||||
maxLines: 2,
|
maxLines: 2,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
softWrap: false),
|
softWrap: false),
|
||||||
@ -122,12 +122,12 @@ Widget wsTextEditingRow(BuildContext context,
|
|||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Padding(
|
Padding(
|
||||||
child: Text(heading, style: Theme.of(context).primaryTextTheme.bodyText1),
|
child: Text(heading, style: Theme.of(context).primaryTextTheme.body2),
|
||||||
padding: EdgeInsets.only(bottom: 2),
|
padding: EdgeInsets.only(bottom: 2),
|
||||||
),
|
),
|
||||||
TextField(
|
TextField(
|
||||||
controller: controller,
|
controller: controller,
|
||||||
style: Theme.of(context).primaryTextTheme.subtitle1,
|
style: Theme.of(context).primaryTextTheme.subhead,
|
||||||
keyboardType: keyboardType ?? TextInputType.text,
|
keyboardType: keyboardType ?? TextInputType.text,
|
||||||
autocorrect: false,
|
autocorrect: false,
|
||||||
autofocus: shouldAutoFocus ?? false,
|
autofocus: shouldAutoFocus ?? false,
|
||||||
@ -146,13 +146,13 @@ Widget widgetCheckoutMeta(BuildContext context, {String title, String amount}) {
|
|||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Flexible(
|
Flexible(
|
||||||
child: Container(
|
child: Container(
|
||||||
child: Text(title, style: Theme.of(context).primaryTextTheme.bodyText2),
|
child: Text(title, style: Theme.of(context).primaryTextTheme.body1),
|
||||||
),
|
),
|
||||||
flex: 3,
|
flex: 3,
|
||||||
),
|
),
|
||||||
Flexible(
|
Flexible(
|
||||||
child: Container(
|
child: Container(
|
||||||
child: Text(amount, style: Theme.of(context).primaryTextTheme.bodyText1),
|
child: Text(amount, style: Theme.of(context).primaryTextTheme.body2),
|
||||||
),
|
),
|
||||||
flex: 3,
|
flex: 3,
|
||||||
)
|
)
|
||||||
@ -180,7 +180,9 @@ Widget wsCardProductItem(BuildContext context, {int index, Product product}) {
|
|||||||
padding: EdgeInsets.all(10),
|
padding: EdgeInsets.all(10),
|
||||||
margin: EdgeInsets.all(5),
|
margin: EdgeInsets.all(5),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Colors.white, borderRadius: BorderRadius.circular(5),),
|
color: Colors.white,
|
||||||
|
borderRadius: BorderRadius.circular(5),
|
||||||
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
@ -198,7 +200,7 @@ Widget wsCardProductItem(BuildContext context, {int index, Product product}) {
|
|||||||
Flexible(
|
Flexible(
|
||||||
child: Text(
|
child: Text(
|
||||||
formatStringCurrency(total: product.price),
|
formatStringCurrency(total: product.price),
|
||||||
style: Theme.of(context).textTheme.bodyText1,
|
style: Theme.of(context).textTheme.body2,
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
),
|
),
|
||||||
flex: 1,
|
flex: 1,
|
||||||
@ -206,7 +208,7 @@ Widget wsCardProductItem(BuildContext context, {int index, Product product}) {
|
|||||||
Expanded(
|
Expanded(
|
||||||
child: Text(
|
child: Text(
|
||||||
product.name,
|
product.name,
|
||||||
style: Theme.of(context).textTheme.bodyText2,
|
style: Theme.of(context).textTheme.body1,
|
||||||
overflow: TextOverflow.clip,
|
overflow: TextOverflow.clip,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
),
|
),
|
||||||
@ -244,7 +246,7 @@ void wsModalBottom(BuildContext context,
|
|||||||
Text(title,
|
Text(title,
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.primaryTextTheme
|
.primaryTextTheme
|
||||||
.headline2
|
.display1
|
||||||
.copyWith(fontSize: 20),
|
.copyWith(fontSize: 20),
|
||||||
textAlign: TextAlign.left),
|
textAlign: TextAlign.left),
|
||||||
bodyWidget,
|
bodyWidget,
|
||||||
@ -414,13 +416,13 @@ Widget wsCardCartItem(BuildContext context,
|
|||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Text(
|
Text(
|
||||||
cartLineItem.name,
|
cartLineItem.name,
|
||||||
style: Theme.of(context).primaryTextTheme.subtitle1,
|
style: Theme.of(context).primaryTextTheme.subhead,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
maxLines: 3,
|
maxLines: 3,
|
||||||
),
|
),
|
||||||
(cartLineItem.variationOptions != null
|
(cartLineItem.variationOptions != null
|
||||||
? Text(cartLineItem.variationOptions,
|
? Text(cartLineItem.variationOptions,
|
||||||
style: Theme.of(context).primaryTextTheme.bodyText1)
|
style: Theme.of(context).primaryTextTheme.body2)
|
||||||
: Container()),
|
: Container()),
|
||||||
Row(
|
Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
@ -432,11 +434,11 @@ Widget wsCardCartItem(BuildContext context,
|
|||||||
: trans(context, "In Stock")),
|
: trans(context, "In Stock")),
|
||||||
style: (cartLineItem.stockStatus == "outofstock"
|
style: (cartLineItem.stockStatus == "outofstock"
|
||||||
? Theme.of(context).textTheme.caption
|
? Theme.of(context).textTheme.caption
|
||||||
: Theme.of(context).primaryTextTheme.bodyText2)),
|
: Theme.of(context).primaryTextTheme.body1)),
|
||||||
Text(
|
Text(
|
||||||
formatDoubleCurrency(
|
formatDoubleCurrency(
|
||||||
total: double.parse(cartLineItem.total)),
|
total: double.parse(cartLineItem.total)),
|
||||||
style: Theme.of(context).primaryTextTheme.subtitle1,
|
style: Theme.of(context).primaryTextTheme.subhead,
|
||||||
textAlign: TextAlign.center)
|
textAlign: TextAlign.center)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@ -7,28 +7,28 @@ packages:
|
|||||||
name: archive
|
name: archive
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.0.13"
|
version: "2.0.11"
|
||||||
args:
|
args:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: args
|
name: args
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.6.0"
|
version: "1.5.2"
|
||||||
async:
|
async:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: async
|
name: async
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.4.1"
|
version: "2.4.0"
|
||||||
boolean_selector:
|
boolean_selector:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: boolean_selector
|
name: boolean_selector
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.0.0"
|
version: "1.0.5"
|
||||||
cached_network_image:
|
cached_network_image:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -42,14 +42,14 @@ packages:
|
|||||||
name: charcode
|
name: charcode
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.1.3"
|
version: "1.1.2"
|
||||||
collection:
|
collection:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: collection
|
name: collection
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.14.12"
|
version: "1.14.11"
|
||||||
convert:
|
convert:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -63,7 +63,7 @@ packages:
|
|||||||
name: crypto
|
name: crypto
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.1.4"
|
version: "2.1.3"
|
||||||
csslib:
|
csslib:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -209,7 +209,7 @@ packages:
|
|||||||
name: image
|
name: image
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.1.12"
|
version: "2.1.4"
|
||||||
intl:
|
intl:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -279,7 +279,7 @@ packages:
|
|||||||
name: petitparser
|
name: petitparser
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "3.0.2"
|
version: "2.4.0"
|
||||||
platform:
|
platform:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -293,7 +293,7 @@ packages:
|
|||||||
name: quiver
|
name: quiver
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.1.3"
|
version: "2.0.5"
|
||||||
shared_preferences:
|
shared_preferences:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -333,7 +333,7 @@ packages:
|
|||||||
name: source_span
|
name: source_span
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.7.0"
|
version: "1.5.5"
|
||||||
sqflite:
|
sqflite:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -389,7 +389,7 @@ packages:
|
|||||||
name: test_api
|
name: test_api
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.2.15"
|
version: "0.2.11"
|
||||||
transformer_page_view:
|
transformer_page_view:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -438,7 +438,7 @@ packages:
|
|||||||
name: xml
|
name: xml
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "3.7.0"
|
version: "3.5.0"
|
||||||
yaml:
|
yaml:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -447,5 +447,5 @@ packages:
|
|||||||
source: hosted
|
source: hosted
|
||||||
version: "2.2.0"
|
version: "2.2.0"
|
||||||
sdks:
|
sdks:
|
||||||
dart: ">=2.7.0 <3.0.0"
|
dart: ">=2.5.0 <3.0.0"
|
||||||
flutter: ">=1.12.13+hotfix.5 <2.0.0"
|
flutter: ">=1.12.13+hotfix.5 <2.0.0"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user