Skip to content

Commit

Permalink
v2.0.8 Added pull to refresh, Pubspec.yaml updates, Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
WooSignal committed Jun 4, 2020
1 parent cf33609 commit c70f9d0
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 33 deletions.
6 changes: 6 additions & 0 deletions LabelStoreMax/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [2.0.8] - 2020-06-04

* Added pull to refresh
* Pubspec.yaml updates
* Bug fixes

## [2.0.7] - 2020-05-26

* New default locales added for Spanish, German, French, Hindi, Italian, Portuguese
Expand Down
2 changes: 1 addition & 1 deletion LabelStoreMax/lib/app_payment_methods.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ List<PaymentType> arrPaymentMethods = [
// pay: myCustomPaymentFunction
// ),
// ),
];
].where((e) => e != null).toList();
2 changes: 1 addition & 1 deletion LabelStoreMax/lib/helpers/tools.dart
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ Widget refreshableScroll(context,
@required onTap,
key}) {
return SmartRefresher(
enablePullDown: false,
enablePullDown: true,
enablePullUp: true,
footer: CustomFooter(
builder: (BuildContext context, LoadStatus mode) {
Expand Down
2 changes: 1 addition & 1 deletion LabelStoreMax/lib/labelconfig.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import 'dart:ui';
Developer Notes
SUPPORT EMAIL - [email protected]
VERSION - 2.0.7
VERSION - 2.0.8
https://woosignal.com
*/

Expand Down
17 changes: 11 additions & 6 deletions LabelStoreMax/lib/pages/account_order_detail.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ class _AccountOrderDetailPageState extends State<AccountOrderDetailPage> {
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Flexible(child: Text("${capitalize(trans(context, "Ships to"))}:")),
Flexible(
child: Text(
"${capitalize(trans(context, "Ships to"))}:")),
Flexible(
child: Text(
[
Expand Down Expand Up @@ -152,13 +154,15 @@ class _AccountOrderDetailPageState extends State<AccountOrderDetailPage> {
children: <Widget>[
Text(
formatStringCurrency(
total: _order.lineItems[i].total,),
total: _order.lineItems[i].total,
),
style: Theme.of(context)
.primaryTextTheme
.bodyText2
.copyWith(
fontWeight: FontWeight.w600,
color: Colors.black,),
fontWeight: FontWeight.w600,
color: Colors.black,
),
textAlign: TextAlign.left,
),
Text(
Expand All @@ -169,8 +173,9 @@ class _AccountOrderDetailPageState extends State<AccountOrderDetailPage> {
.primaryTextTheme
.bodyText1
.copyWith(
fontWeight: FontWeight.w600,
color: Colors.black,),
fontWeight: FontWeight.w600,
color: Colors.black,
),
textAlign: TextAlign.left,
),
],
Expand Down
11 changes: 5 additions & 6 deletions LabelStoreMax/lib/pages/browse_category.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,12 @@ class _BrowseCategoryPageState extends State<BrowseCategoryPage> {
}

void _onRefresh() async {
_products = [];
_page = 1;
_shouldStopRequests = false;
waitForNextRequest = false;
await _fetchMoreProducts();
setState(() {});
if (_shouldStopRequests) {
_refreshController.resetNoData();
} else {
_refreshController.refreshCompleted();
}
_refreshController.refreshCompleted();
}

void _onLoading() async {
Expand Down
11 changes: 5 additions & 6 deletions LabelStoreMax/lib/pages/browse_search.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,12 @@ class _BrowseSearchState extends State<BrowseSearchPage> {
}

void _onRefresh() async {
_products = [];
_page = 1;
_shouldStopRequests = false;
waitForNextRequest = false;
await _fetchProductsForSearch();
setState(() {});
if (_shouldStopRequests) {
_refreshController.resetNoData();
} else {
_refreshController.refreshCompleted();
}
_refreshController.refreshCompleted();
}

void _onLoading() async {
Expand Down
3 changes: 2 additions & 1 deletion LabelStoreMax/lib/pages/checkout_confirmation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ class CheckoutConfirmationPageState extends State<CheckoutConfirmationPage> {
leadTitle: (CheckoutSession.getInstance
.billingDetails.billingAddress
.hasMissingFields()
? trans(context, "Billing address is incomplete")
? trans(
context, "Billing address is incomplete")
: CheckoutSession.getInstance
.billingDetails.billingAddress
.addressFull()),
Expand Down
11 changes: 5 additions & 6 deletions LabelStoreMax/lib/pages/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,12 @@ class _HomePageState extends State<HomePage> {
}

void _onRefresh() async {
_products = [];
_page = 1;
_shouldStopRequests = false;
waitForNextRequest = false;
await _fetchMoreProducts();
setState(() {});
if (_shouldStopRequests) {
_refreshController.resetNoData();
} else {
_refreshController.refreshCompleted();
}
_refreshController.refreshCompleted();
}

void _onLoading() async {
Expand Down
4 changes: 2 additions & 2 deletions LabelStoreMax/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ packages:
name: woosignal
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.8"
version: "1.0.9"
woosignal_stripe:
dependency: "direct main"
description:
Expand All @@ -564,7 +564,7 @@ packages:
name: wp_json_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.2"
version: "0.1.3"
xml:
dependency: transitive
description:
Expand Down
6 changes: 3 additions & 3 deletions LabelStoreMax/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Label StoreMax
# Version 2.0.7
# Version 2.0.8
#authors: - "Anthony Gordon"
#documentation: https://woosignal.com/docs/app/ios/label-storemax
#homepage: https://woosignal.com/
Expand All @@ -24,10 +24,10 @@ environment:
sdk: ">=2.1.0 <3.0.0"

dependencies:
woosignal: ^1.0.8
woosignal: ^1.0.9
woosignal_stripe: ^0.0.4
razorpay_flutter: ^1.2.1
wp_json_api: ^0.1.2
wp_json_api: ^0.1.3
shared_preferences: ^0.5.7+3
cached_network_image: ^2.2.0+1
page_transition: ^1.1.5
Expand Down

0 comments on commit c70f9d0

Please sign in to comment.