Skip to content

Commit c70f9d0

Browse files
author
WooSignal
committed
v2.0.8 Added pull to refresh, Pubspec.yaml updates, Bug fixes
1 parent cf33609 commit c70f9d0

File tree

11 files changed

+42
-33
lines changed

11 files changed

+42
-33
lines changed

LabelStoreMax/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [2.0.8] - 2020-06-04
2+
3+
* Added pull to refresh
4+
* Pubspec.yaml updates
5+
* Bug fixes
6+
17
## [2.0.7] - 2020-05-26
28

39
* New default locales added for Spanish, German, French, Hindi, Italian, Portuguese

LabelStoreMax/lib/app_payment_methods.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ List<PaymentType> arrPaymentMethods = [
5858
// pay: myCustomPaymentFunction
5959
// ),
6060
// ),
61-
];
61+
].where((e) => e != null).toList();

LabelStoreMax/lib/helpers/tools.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ Widget refreshableScroll(context,
479479
@required onTap,
480480
key}) {
481481
return SmartRefresher(
482-
enablePullDown: false,
482+
enablePullDown: true,
483483
enablePullUp: true,
484484
footer: CustomFooter(
485485
builder: (BuildContext context, LoadStatus mode) {

LabelStoreMax/lib/labelconfig.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import 'dart:ui';
1616
Developer Notes
1717
1818
SUPPORT EMAIL - support@woosignal.com
19-
VERSION - 2.0.7
19+
VERSION - 2.0.8
2020
https://woosignal.com
2121
*/
2222

LabelStoreMax/lib/pages/account_order_detail.dart

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ class _AccountOrderDetailPageState extends State<AccountOrderDetailPage> {
7777
crossAxisAlignment: CrossAxisAlignment.start,
7878
mainAxisAlignment: MainAxisAlignment.spaceBetween,
7979
children: <Widget>[
80-
Flexible(child: Text("${capitalize(trans(context, "Ships to"))}:")),
80+
Flexible(
81+
child: Text(
82+
"${capitalize(trans(context, "Ships to"))}:")),
8183
Flexible(
8284
child: Text(
8385
[
@@ -152,13 +154,15 @@ class _AccountOrderDetailPageState extends State<AccountOrderDetailPage> {
152154
children: <Widget>[
153155
Text(
154156
formatStringCurrency(
155-
total: _order.lineItems[i].total,),
157+
total: _order.lineItems[i].total,
158+
),
156159
style: Theme.of(context)
157160
.primaryTextTheme
158161
.bodyText2
159162
.copyWith(
160-
fontWeight: FontWeight.w600,
161-
color: Colors.black,),
163+
fontWeight: FontWeight.w600,
164+
color: Colors.black,
165+
),
162166
textAlign: TextAlign.left,
163167
),
164168
Text(
@@ -169,8 +173,9 @@ class _AccountOrderDetailPageState extends State<AccountOrderDetailPage> {
169173
.primaryTextTheme
170174
.bodyText1
171175
.copyWith(
172-
fontWeight: FontWeight.w600,
173-
color: Colors.black,),
176+
fontWeight: FontWeight.w600,
177+
color: Colors.black,
178+
),
174179
textAlign: TextAlign.left,
175180
),
176181
],

LabelStoreMax/lib/pages/browse_category.dart

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,12 @@ class _BrowseCategoryPageState extends State<BrowseCategoryPage> {
120120
}
121121

122122
void _onRefresh() async {
123+
_products = [];
124+
_page = 1;
125+
_shouldStopRequests = false;
126+
waitForNextRequest = false;
123127
await _fetchMoreProducts();
124-
setState(() {});
125-
if (_shouldStopRequests) {
126-
_refreshController.resetNoData();
127-
} else {
128-
_refreshController.refreshCompleted();
129-
}
128+
_refreshController.refreshCompleted();
130129
}
131130

132131
void _onLoading() async {

LabelStoreMax/lib/pages/browse_search.dart

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,12 @@ class _BrowseSearchState extends State<BrowseSearchPage> {
108108
}
109109

110110
void _onRefresh() async {
111+
_products = [];
112+
_page = 1;
113+
_shouldStopRequests = false;
114+
waitForNextRequest = false;
111115
await _fetchProductsForSearch();
112-
setState(() {});
113-
if (_shouldStopRequests) {
114-
_refreshController.resetNoData();
115-
} else {
116-
_refreshController.refreshCompleted();
117-
}
116+
_refreshController.refreshCompleted();
118117
}
119118

120119
void _onLoading() async {

LabelStoreMax/lib/pages/checkout_confirmation.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,8 @@ class CheckoutConfirmationPageState extends State<CheckoutConfirmationPage> {
219219
leadTitle: (CheckoutSession.getInstance
220220
.billingDetails.billingAddress
221221
.hasMissingFields()
222-
? trans(context, "Billing address is incomplete")
222+
? trans(
223+
context, "Billing address is incomplete")
223224
: CheckoutSession.getInstance
224225
.billingDetails.billingAddress
225226
.addressFull()),

LabelStoreMax/lib/pages/home.dart

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,12 @@ class _HomePageState extends State<HomePage> {
193193
}
194194

195195
void _onRefresh() async {
196+
_products = [];
197+
_page = 1;
198+
_shouldStopRequests = false;
199+
waitForNextRequest = false;
196200
await _fetchMoreProducts();
197-
setState(() {});
198-
if (_shouldStopRequests) {
199-
_refreshController.resetNoData();
200-
} else {
201-
_refreshController.refreshCompleted();
202-
}
201+
_refreshController.refreshCompleted();
203202
}
204203

205204
void _onLoading() async {

LabelStoreMax/pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ packages:
550550
name: woosignal
551551
url: "https://pub.dartlang.org"
552552
source: hosted
553-
version: "1.0.8"
553+
version: "1.0.9"
554554
woosignal_stripe:
555555
dependency: "direct main"
556556
description:
@@ -564,7 +564,7 @@ packages:
564564
name: wp_json_api
565565
url: "https://pub.dartlang.org"
566566
source: hosted
567-
version: "0.1.2"
567+
version: "0.1.3"
568568
xml:
569569
dependency: transitive
570570
description:

0 commit comments

Comments
 (0)