Skip to content

Commit f0c7769

Browse files
committed
v5.0.3 updates
1 parent d08d1b0 commit f0c7769

File tree

7 files changed

+26
-17
lines changed

7 files changed

+26
-17
lines changed

LabelStoreMax/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [5.0.3] - 2020-04-27
2+
3+
* Fix issue account page when logged in for Notic theme
4+
* Small tweak to helpers.dart
5+
* Pubspec.yaml dependency updates
6+
17
## [5.0.2] - 2020-04-17
28

39
* Fix issue with PayPal checkout when using different locales

LabelStoreMax/lib/bootstrap/helpers.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,7 @@ showToastNotification(BuildContext context,
246246

247247
String parseHtmlString(String htmlString) {
248248
var document = parse(htmlString);
249-
String parsedString = parse(document.body.text).documentElement.text;
250-
return parsedString;
249+
return parse(document.body.text).documentElement.text;
251250
}
252251

253252
String moneyFormatter(double amount) {

LabelStoreMax/lib/resources/pages/account_detail.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ import 'package:wp_json_api/models/responses/wc_customer_info_response.dart';
2424
import 'package:wp_json_api/wp_json_api.dart';
2525

2626
class AccountDetailPage extends StatefulWidget {
27+
final bool showLeadingBackButton;
28+
const AccountDetailPage({this.showLeadingBackButton = true});
2729
@override
2830
_AccountDetailPageState createState() => _AccountDetailPageState();
2931
}
@@ -102,13 +104,13 @@ class _AccountDetailPageState extends State<AccountDetailPage>
102104
return Scaffold(
103105
appBar: AppBar(
104106
backgroundColor: Colors.transparent,
105-
leading: Container(
107+
leading: widget.showLeadingBackButton ? Container(
106108
child: IconButton(
107109
icon: Icon(Icons.arrow_back_ios),
108110
onPressed: () => Navigator.pop(context),
109111
),
110112
margin: EdgeInsets.only(left: 0),
111-
),
113+
) : Container(),
112114
title: Text(
113115
trans(context, "Account"),
114116
style: Theme.of(context).textTheme.headline6,

LabelStoreMax/lib/resources/widgets/notic_theme_widget.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import 'package:flutter/cupertino.dart';
22
import 'package:flutter/material.dart';
33
import 'package:flutter_app/bootstrap/app_helper.dart';
4+
import 'package:flutter_app/bootstrap/shared_pref/sp_auth.dart';
5+
import 'package:flutter_app/resources/pages/account_detail.dart';
46
import 'package:flutter_app/resources/pages/account_landing.dart';
57
import 'package:flutter_app/resources/pages/cart.dart';
68
import 'package:flutter_app/resources/pages/home_search.dart';
@@ -62,13 +64,13 @@ class _NoticThemeWidgetState extends State<NoticThemeWidget> {
6264
);
6365
}
6466

65-
_onTabTapped(int i) {
67+
_onTabTapped(int i) async {
6668
_currentIndex = i;
67-
_changeMainWidget();
69+
await _changeMainWidget();
6870
setState(() {});
6971
}
7072

71-
_changeMainWidget() {
73+
_changeMainWidget() async {
7274
switch (_currentIndex) {
7375
case 0:
7476
{
@@ -87,7 +89,7 @@ class _NoticThemeWidgetState extends State<NoticThemeWidget> {
8789
}
8890
case 3:
8991
{
90-
activeWidget = AccountLandingPage();
92+
activeWidget = (await authCheck()) ? AccountDetailPage(showLeadingBackButton: false) : AccountLandingPage();
9193
break;
9294
}
9395
}

LabelStoreMax/pubspec.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ packages:
77
name: _fe_analyzer_shared
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "20.0.0"
10+
version: "21.0.0"
1111
adaptive_theme:
1212
dependency: "direct main"
1313
description:
1414
name: adaptive_theme
1515
url: "https://pub.dartlang.org"
1616
source: hosted
17-
version: "2.1.1"
17+
version: "2.2.0"
1818
analyzer:
1919
dependency: "direct main"
2020
description:
2121
name: analyzer
2222
url: "https://pub.dartlang.org"
2323
source: hosted
24-
version: "1.4.0"
24+
version: "1.5.0"
2525
animate_do:
2626
dependency: "direct main"
2727
description:
@@ -538,7 +538,7 @@ packages:
538538
name: pull_to_refresh
539539
url: "https://pub.dartlang.org"
540540
source: hosted
541-
version: "1.6.4"
541+
version: "1.6.5"
542542
queue:
543543
dependency: transitive
544544
description:

LabelStoreMax/pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Official WooSignal App Template for WooCommerce
22

33
# Label StoreMax
4-
# Version: 5.0.2
4+
# Version: 5.0.3
55
# Author: Anthony Gordon
66
# Homepage: https://woosignal.com
77
# Documentation: https://woosignal.com/docs/app/ios/label-storemax
@@ -26,8 +26,8 @@ environment:
2626

2727
dependencies:
2828
google_fonts: ^2.0.0
29-
analyzer: ^1.3.0
30-
adaptive_theme: ^2.0.0
29+
analyzer: ^1.5.0
30+
adaptive_theme: ^2.2.0
3131
intl: ^0.17.0
3232
page_transition: ^2.0.1-nullsafety.0
3333
nylo_framework: ^0.8.2
@@ -41,7 +41,7 @@ dependencies:
4141
platform_alert_dialog: ^1.0.0+2
4242
flutter_web_browser: ^0.14.0
4343
flutter_webview_plugin: ^0.3.11
44-
pull_to_refresh: 1.6.4
44+
pull_to_refresh: 1.6.5
4545
flutter_swiper: ^1.1.6
4646
flutter_styled_toast: ^2.0.0
4747
animate_do: ^2.0.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# WooCommerce App: Label StoreMax
66

7-
### Label StoreMax - v5.0.2
7+
### Label StoreMax - v5.0.3
88

99

1010
[Official WooSignal WooCommerce App](https://woosignal.com)

0 commit comments

Comments
 (0)