v2.3.0 updates, dependancy version bump and bug fixes
This commit is contained in:
parent
cdb34c7b8d
commit
b2df6c5224
@ -1,3 +1,9 @@
|
|||||||
|
## [2.3.0] - 2020-11-18
|
||||||
|
|
||||||
|
* Option to set if prices include tax
|
||||||
|
* Pubspec.yaml dependency updates
|
||||||
|
* Bug fixes
|
||||||
|
|
||||||
## [2.2.2] - 2020-10-30
|
## [2.2.2] - 2020-10-30
|
||||||
|
|
||||||
* Bug fix for Android build
|
* Bug fix for Android build
|
||||||
|
|||||||
@ -1,12 +0,0 @@
|
|||||||
# APP CONFIGURATION
|
|
||||||
# Updates the package name and display name for your app
|
|
||||||
|
|
||||||
# Run in the terminal: "flutter pub run flutter_application_id:main"
|
|
||||||
|
|
||||||
flutter_application_id:
|
|
||||||
android:
|
|
||||||
id: "com.woosignal.label-android"
|
|
||||||
name: "Label StoreMax"
|
|
||||||
ios:
|
|
||||||
id: "com.woosignal.label-ios"
|
|
||||||
name: "Label StoreMax"
|
|
||||||
@ -16,7 +16,7 @@ import 'dart:ui';
|
|||||||
Developer Notes
|
Developer Notes
|
||||||
|
|
||||||
SUPPORT EMAIL - support@woosignal.com
|
SUPPORT EMAIL - support@woosignal.com
|
||||||
VERSION - 2.2.2
|
VERSION - 2.3.0
|
||||||
https://woosignal.com
|
https://woosignal.com
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -38,7 +38,11 @@ const app_privacy_url = "https://yourdomain.com/privacy";
|
|||||||
|
|
||||||
const app_currency_symbol = "\£";
|
const app_currency_symbol = "\£";
|
||||||
const app_currency_iso = "gbp";
|
const app_currency_iso = "gbp";
|
||||||
|
|
||||||
|
const app_products_prices_include_tax = true;
|
||||||
|
|
||||||
const Locale app_locale = Locale('en');
|
const Locale app_locale = Locale('en');
|
||||||
|
|
||||||
const List<Locale> app_locales_supported = [
|
const List<Locale> app_locales_supported = [
|
||||||
Locale('en'),
|
Locale('en'),
|
||||||
Locale('es'),
|
Locale('es'),
|
||||||
|
|||||||
@ -11,6 +11,7 @@
|
|||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
import 'package:label_storemax/helpers/shared_pref.dart';
|
import 'package:label_storemax/helpers/shared_pref.dart';
|
||||||
|
import 'package:label_storemax/labelconfig.dart';
|
||||||
import 'package:label_storemax/models/cart_line_item.dart';
|
import 'package:label_storemax/models/cart_line_item.dart';
|
||||||
import 'package:label_storemax/models/checkout_session.dart';
|
import 'package:label_storemax/models/checkout_session.dart';
|
||||||
import 'package:label_storemax/models/shipping_type.dart';
|
import 'package:label_storemax/models/shipping_type.dart';
|
||||||
@ -148,9 +149,10 @@ class Cart {
|
|||||||
cartItems.where((c) => c.taxStatus == 'taxable').toList();
|
cartItems.where((c) => c.taxStatus == 'taxable').toList();
|
||||||
double cartSubtotal = 0;
|
double cartSubtotal = 0;
|
||||||
|
|
||||||
if (taxableCartLines.length > 0) {
|
if (app_products_prices_include_tax == false &&
|
||||||
|
taxableCartLines.length > 0) {
|
||||||
cartSubtotal = taxableCartLines
|
cartSubtotal = taxableCartLines
|
||||||
.map<double>((m) => parseWcPrice(m.subtotal))
|
.map<double>((m) => parseWcPrice(m.subtotal) * m.quantity)
|
||||||
.reduce((a, b) => a + b);
|
.reduce((a, b) => a + b);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -62,8 +62,12 @@ class _AccountDetailPageState extends State<AccountDetailPage>
|
|||||||
];
|
];
|
||||||
_tabController = TabController(vsync: this, length: _tabs.length);
|
_tabController = TabController(vsync: this, length: _tabs.length);
|
||||||
_activeBody = showAppLoader();
|
_activeBody = showAppLoader();
|
||||||
_fetchWpUserData();
|
this.init();
|
||||||
_fetchOrders();
|
}
|
||||||
|
|
||||||
|
init() async {
|
||||||
|
await _fetchWpUserData();
|
||||||
|
await _fetchOrders();
|
||||||
}
|
}
|
||||||
|
|
||||||
_fetchWpUserData() async {
|
_fetchWpUserData() async {
|
||||||
|
|||||||
@ -80,21 +80,24 @@ class _CartPageState extends State<CartPage> {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (cartLineItems.length <= 0) {
|
if (cartLineItems.length <= 0) {
|
||||||
showEdgeAlertWith(context,
|
showEdgeAlertWith(
|
||||||
|
context,
|
||||||
title: trans(context, "Cart"),
|
title: trans(context, "Cart"),
|
||||||
desc: trans(context,
|
desc: trans(context, "You need items in your cart to checkout"),
|
||||||
trans(context, "You need items in your cart to checkout")),
|
|
||||||
style: EdgeAlertStyle.WARNING,
|
style: EdgeAlertStyle.WARNING,
|
||||||
icon: Icons.shopping_cart);
|
icon: Icons.shopping_cart,
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!cartLineItems.every(
|
if (!cartLineItems.every(
|
||||||
(c) => c.stockStatus == 'instock' || c.stockStatus == 'onbackorder')) {
|
(c) => c.stockStatus == 'instock' || c.stockStatus == 'onbackorder')) {
|
||||||
showEdgeAlertWith(context,
|
showEdgeAlertWith(
|
||||||
|
context,
|
||||||
title: trans(context, "Cart"),
|
title: trans(context, "Cart"),
|
||||||
desc: trans(context, trans(context, "There is an item out of stock")),
|
desc: trans(context, "There is an item out of stock"),
|
||||||
style: EdgeAlertStyle.WARNING,
|
style: EdgeAlertStyle.WARNING,
|
||||||
icon: Icons.shopping_cart);
|
icon: Icons.shopping_cart,
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
CheckoutSession.getInstance.initSession();
|
CheckoutSession.getInstance.initSession();
|
||||||
@ -120,7 +123,7 @@ class _CartPageState extends State<CartPage> {
|
|||||||
showEdgeAlertWith(
|
showEdgeAlertWith(
|
||||||
context,
|
context,
|
||||||
title: trans(context, "Cart"),
|
title: trans(context, "Cart"),
|
||||||
desc: trans(context, trans(context, "Maximum stock reached")),
|
desc: trans(context, "Maximum stock reached"),
|
||||||
style: EdgeAlertStyle.WARNING,
|
style: EdgeAlertStyle.WARNING,
|
||||||
icon: Icons.shopping_cart,
|
icon: Icons.shopping_cart,
|
||||||
);
|
);
|
||||||
@ -187,8 +190,10 @@ class _CartPageState extends State<CartPage> {
|
|||||||
splashColor: Colors.transparent,
|
splashColor: Colors.transparent,
|
||||||
child: Align(
|
child: Align(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
child: Text(trans(context, "Clear Cart"),
|
child: Text(
|
||||||
style: Theme.of(context).primaryTextTheme.bodyText1),
|
trans(context, "Clear Cart"),
|
||||||
|
style: Theme.of(context).primaryTextTheme.bodyText1,
|
||||||
|
),
|
||||||
padding: EdgeInsets.only(right: 8),
|
padding: EdgeInsets.only(right: 8),
|
||||||
),
|
),
|
||||||
alignment: Alignment.centerLeft,
|
alignment: Alignment.centerLeft,
|
||||||
@ -217,10 +222,11 @@ class _CartPageState extends State<CartPage> {
|
|||||||
color: Colors.black45,
|
color: Colors.black45,
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
child: Text(trans(context, "Empty Basket"),
|
child: Text(
|
||||||
style: Theme.of(context)
|
trans(context, "Empty Basket"),
|
||||||
.primaryTextTheme
|
style:
|
||||||
.bodyText2),
|
Theme.of(context).primaryTextTheme.bodyText2,
|
||||||
|
),
|
||||||
padding: EdgeInsets.only(top: 10),
|
padding: EdgeInsets.only(top: 10),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
@ -266,9 +272,11 @@ class _CartPageState extends State<CartPage> {
|
|||||||
return Text("");
|
return Text("");
|
||||||
else
|
else
|
||||||
return new Padding(
|
return new Padding(
|
||||||
child: wsRow2Text(context,
|
child: wsRow2Text(
|
||||||
|
context,
|
||||||
text1: trans(context, "Total"),
|
text1: trans(context, "Total"),
|
||||||
text2: (_isLoading ? "" : snapshot.data)),
|
text2: (_isLoading ? "" : snapshot.data),
|
||||||
|
),
|
||||||
padding: EdgeInsets.only(bottom: 15, top: 15),
|
padding: EdgeInsets.only(bottom: 15, top: 15),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -676,7 +676,7 @@ packages:
|
|||||||
name: wp_json_api
|
name: wp_json_api
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.1.4"
|
version: "2.0.0"
|
||||||
xdg_directories:
|
xdg_directories:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|||||||
@ -1,15 +1,11 @@
|
|||||||
# Official WooSignal App Template for WooCommerce
|
# Official WooSignal App Template for WooCommerce
|
||||||
|
|
||||||
# Label StoreMax
|
# Label StoreMax
|
||||||
# Version 2.2.2
|
# Version 2.3.0
|
||||||
# Homepage: https://woosignal.com
|
# Homepage: https://woosignal.com
|
||||||
# Author: Anthony Gordon <agordon@woosignal.com>
|
# Author: Anthony Gordon <agordon@woosignal.com>
|
||||||
# Documentation: https://woosignal.com/docs/app/ios/label-storemax
|
# Documentation: https://woosignal.com/docs/app/ios/label-storemax
|
||||||
|
|
||||||
### App Configuration
|
|
||||||
# 1 Open: "lib/labelconfig.dart" and edit the variables
|
|
||||||
# 2 Open: "flutter_application_id.yaml" and update package name and display name
|
|
||||||
|
|
||||||
### Change App Icon
|
### Change App Icon
|
||||||
# 1 Replace: assets/icon/appicon.png (1024px1024px icon size)
|
# 1 Replace: assets/icon/appicon.png (1024px1024px icon size)
|
||||||
# 2 Run this command from terminal: "flutter pub run flutter_launcher_icons:main"
|
# 2 Run this command from terminal: "flutter pub run flutter_launcher_icons:main"
|
||||||
@ -30,7 +26,7 @@ dependencies:
|
|||||||
woosignal: ^1.2.1
|
woosignal: ^1.2.1
|
||||||
woosignal_stripe: ^0.0.6
|
woosignal_stripe: ^0.0.6
|
||||||
razorpay_flutter: ^1.2.2
|
razorpay_flutter: ^1.2.2
|
||||||
wp_json_api: ^0.1.4
|
wp_json_api: ^2.0.0
|
||||||
shared_preferences: ^0.5.12
|
shared_preferences: ^0.5.12
|
||||||
cached_network_image: ^2.3.3
|
cached_network_image: ^2.3.3
|
||||||
page_transition: ^1.1.7+2
|
page_transition: ^1.1.7+2
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user