v5.0.3 updates
This commit is contained in:
parent
d08d1b0fe3
commit
f0c7769b68
@ -1,3 +1,9 @@
|
|||||||
|
## [5.0.3] - 2020-04-27
|
||||||
|
|
||||||
|
* Fix issue account page when logged in for Notic theme
|
||||||
|
* Small tweak to helpers.dart
|
||||||
|
* Pubspec.yaml dependency updates
|
||||||
|
|
||||||
## [5.0.2] - 2020-04-17
|
## [5.0.2] - 2020-04-17
|
||||||
|
|
||||||
* Fix issue with PayPal checkout when using different locales
|
* Fix issue with PayPal checkout when using different locales
|
||||||
|
|||||||
@ -246,8 +246,7 @@ showToastNotification(BuildContext context,
|
|||||||
|
|
||||||
String parseHtmlString(String htmlString) {
|
String parseHtmlString(String htmlString) {
|
||||||
var document = parse(htmlString);
|
var document = parse(htmlString);
|
||||||
String parsedString = parse(document.body.text).documentElement.text;
|
return parse(document.body.text).documentElement.text;
|
||||||
return parsedString;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String moneyFormatter(double amount) {
|
String moneyFormatter(double amount) {
|
||||||
|
|||||||
@ -24,6 +24,8 @@ import 'package:wp_json_api/models/responses/wc_customer_info_response.dart';
|
|||||||
import 'package:wp_json_api/wp_json_api.dart';
|
import 'package:wp_json_api/wp_json_api.dart';
|
||||||
|
|
||||||
class AccountDetailPage extends StatefulWidget {
|
class AccountDetailPage extends StatefulWidget {
|
||||||
|
final bool showLeadingBackButton;
|
||||||
|
const AccountDetailPage({this.showLeadingBackButton = true});
|
||||||
@override
|
@override
|
||||||
_AccountDetailPageState createState() => _AccountDetailPageState();
|
_AccountDetailPageState createState() => _AccountDetailPageState();
|
||||||
}
|
}
|
||||||
@ -102,13 +104,13 @@ class _AccountDetailPageState extends State<AccountDetailPage>
|
|||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
leading: Container(
|
leading: widget.showLeadingBackButton ? Container(
|
||||||
child: IconButton(
|
child: IconButton(
|
||||||
icon: Icon(Icons.arrow_back_ios),
|
icon: Icon(Icons.arrow_back_ios),
|
||||||
onPressed: () => Navigator.pop(context),
|
onPressed: () => Navigator.pop(context),
|
||||||
),
|
),
|
||||||
margin: EdgeInsets.only(left: 0),
|
margin: EdgeInsets.only(left: 0),
|
||||||
),
|
) : Container(),
|
||||||
title: Text(
|
title: Text(
|
||||||
trans(context, "Account"),
|
trans(context, "Account"),
|
||||||
style: Theme.of(context).textTheme.headline6,
|
style: Theme.of(context).textTheme.headline6,
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_app/bootstrap/app_helper.dart';
|
import 'package:flutter_app/bootstrap/app_helper.dart';
|
||||||
|
import 'package:flutter_app/bootstrap/shared_pref/sp_auth.dart';
|
||||||
|
import 'package:flutter_app/resources/pages/account_detail.dart';
|
||||||
import 'package:flutter_app/resources/pages/account_landing.dart';
|
import 'package:flutter_app/resources/pages/account_landing.dart';
|
||||||
import 'package:flutter_app/resources/pages/cart.dart';
|
import 'package:flutter_app/resources/pages/cart.dart';
|
||||||
import 'package:flutter_app/resources/pages/home_search.dart';
|
import 'package:flutter_app/resources/pages/home_search.dart';
|
||||||
@ -62,13 +64,13 @@ class _NoticThemeWidgetState extends State<NoticThemeWidget> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
_onTabTapped(int i) {
|
_onTabTapped(int i) async {
|
||||||
_currentIndex = i;
|
_currentIndex = i;
|
||||||
_changeMainWidget();
|
await _changeMainWidget();
|
||||||
setState(() {});
|
setState(() {});
|
||||||
}
|
}
|
||||||
|
|
||||||
_changeMainWidget() {
|
_changeMainWidget() async {
|
||||||
switch (_currentIndex) {
|
switch (_currentIndex) {
|
||||||
case 0:
|
case 0:
|
||||||
{
|
{
|
||||||
@ -87,7 +89,7 @@ class _NoticThemeWidgetState extends State<NoticThemeWidget> {
|
|||||||
}
|
}
|
||||||
case 3:
|
case 3:
|
||||||
{
|
{
|
||||||
activeWidget = AccountLandingPage();
|
activeWidget = (await authCheck()) ? AccountDetailPage(showLeadingBackButton: false) : AccountLandingPage();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,21 +7,21 @@ packages:
|
|||||||
name: _fe_analyzer_shared
|
name: _fe_analyzer_shared
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "20.0.0"
|
version: "21.0.0"
|
||||||
adaptive_theme:
|
adaptive_theme:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: adaptive_theme
|
name: adaptive_theme
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.1.1"
|
version: "2.2.0"
|
||||||
analyzer:
|
analyzer:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: analyzer
|
name: analyzer
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.4.0"
|
version: "1.5.0"
|
||||||
animate_do:
|
animate_do:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -538,7 +538,7 @@ packages:
|
|||||||
name: pull_to_refresh
|
name: pull_to_refresh
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.6.4"
|
version: "1.6.5"
|
||||||
queue:
|
queue:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
# Official WooSignal App Template for WooCommerce
|
# Official WooSignal App Template for WooCommerce
|
||||||
|
|
||||||
# Label StoreMax
|
# Label StoreMax
|
||||||
# Version: 5.0.2
|
# Version: 5.0.3
|
||||||
# Author: Anthony Gordon
|
# Author: Anthony Gordon
|
||||||
# Homepage: https://woosignal.com
|
# Homepage: https://woosignal.com
|
||||||
# Documentation: https://woosignal.com/docs/app/ios/label-storemax
|
# Documentation: https://woosignal.com/docs/app/ios/label-storemax
|
||||||
@ -26,8 +26,8 @@ environment:
|
|||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
google_fonts: ^2.0.0
|
google_fonts: ^2.0.0
|
||||||
analyzer: ^1.3.0
|
analyzer: ^1.5.0
|
||||||
adaptive_theme: ^2.0.0
|
adaptive_theme: ^2.2.0
|
||||||
intl: ^0.17.0
|
intl: ^0.17.0
|
||||||
page_transition: ^2.0.1-nullsafety.0
|
page_transition: ^2.0.1-nullsafety.0
|
||||||
nylo_framework: ^0.8.2
|
nylo_framework: ^0.8.2
|
||||||
@ -41,7 +41,7 @@ dependencies:
|
|||||||
platform_alert_dialog: ^1.0.0+2
|
platform_alert_dialog: ^1.0.0+2
|
||||||
flutter_web_browser: ^0.14.0
|
flutter_web_browser: ^0.14.0
|
||||||
flutter_webview_plugin: ^0.3.11
|
flutter_webview_plugin: ^0.3.11
|
||||||
pull_to_refresh: 1.6.4
|
pull_to_refresh: 1.6.5
|
||||||
flutter_swiper: ^1.1.6
|
flutter_swiper: ^1.1.6
|
||||||
flutter_styled_toast: ^2.0.0
|
flutter_styled_toast: ^2.0.0
|
||||||
animate_do: ^2.0.0
|
animate_do: ^2.0.0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user