Skip to content

Commit e6d98a6

Browse files
committed
v1.0.3
1 parent 3218c80 commit e6d98a6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+918
-963
lines changed

ShopMax/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [1.0.3] - 2024-02-15
2+
3+
* Tweaks to the Mello Template
4+
* Format project
5+
* pubspec.yaml updates
6+
17
## [1.0.2] - 2024-02-13
28

39
* pubspec.yaml updates

ShopMax/lib/app/controllers/account_order_detail_controller.dart

Lines changed: 0 additions & 13 deletions
This file was deleted.

ShopMax/lib/app/controllers/browse_search_controller.dart

Lines changed: 0 additions & 13 deletions
This file was deleted.

ShopMax/lib/app/controllers/checkout_status_controller.dart

Lines changed: 0 additions & 13 deletions
This file was deleted.

ShopMax/lib/app/controllers/shopify/product_detail_controller.dart

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ class ProductDetailController extends Controller {
2727
ws_shopify.Variants? variant;
2828
final Map<int, dynamic> _tmpAttributeObj = {};
2929

30-
@override
31-
construct(BuildContext context) {
32-
super.construct(context);
33-
34-
}
35-
3630
addQuantityTapped({Function? onSuccess}) {
3731
if (variant?.inventoryPolicy == "deny") {
3832
if (quantity >= (variant?.inventoryQuantity ?? 0)) {
@@ -70,11 +64,14 @@ class ProductDetailController extends Controller {
7064
{required Function onSuccess,
7165
required WishlistAction wishlistAction}) async {
7266
String subtitleMsg;
67+
if (product == null) {
68+
return;
69+
}
7370
if (wishlistAction == WishlistAction.remove) {
74-
// await removeWishlistProduct(product: product);
71+
await removeWishlistProduct(productId: product!.id.toString());
7572
subtitleMsg = trans("This product has been removed from your wishlist");
7673
} else {
77-
// await saveWishlistProduct(product: product);
74+
await saveWishlistProduct(productId: product!.id.toString());
7875
subtitleMsg = trans("This product has been added to your wishlist");
7976
}
8077
showStatusAlert(

ShopMax/lib/app/events/delete_account_event.dart

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,17 @@ import 'package:url_launcher/url_launcher.dart';
44
import 'package:woosignal_shopify_api/models/response/auth/auth_customer_info.dart';
55

66
class DeleteAccountEvent implements NyEvent {
7-
87
@override
98
final listeners = {
109
_DefaultListener: _DefaultListener(),
1110
};
1211
}
1312

1413
class _DefaultListener extends NyListener {
15-
1614
@override
1715
handle(dynamic event) async {
18-
19-
AuthCustomerInfo? authCustomerInfo = await appWooSignalShopify((api) => api.authCustomer());
16+
AuthCustomerInfo? authCustomerInfo =
17+
await appWooSignalShopify((api) => api.authCustomer());
2018
if (authCustomerInfo == null) {
2119
return;
2220
}
@@ -49,8 +47,7 @@ ${authCustomerInfo.firstName}
4947
queryParameters: {
5048
'subject': 'Request for Account Deletion - ${getEnv('APP_NAME')}',
5149
'body': body
52-
}
53-
);
50+
});
5451

5552
return await launchUrl(deleteAccount);
5653
}

ShopMax/lib/app/events/login_event.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,5 @@ class LoginEvent implements NyEvent {
99

1010
class DefaultListener extends NyListener {
1111
@override
12-
handle(dynamic event) async {
13-
14-
}
12+
handle(dynamic event) async {}
1513
}

ShopMax/lib/app/models/default_shipping.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ class DefaultShipping {
1616
List<DefaultShippingState> states;
1717
ShopifyCountry? shopifyCountry;
1818
DefaultShipping(
19-
{required this.code, required this.country, required this.states, this.shopifyCountry});
19+
{required this.code,
20+
required this.country,
21+
required this.states,
22+
this.shopifyCountry});
2023
}
2124

2225
class DefaultShippingState {

ShopMax/lib/app/providers/app_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class AppProvider implements NyProvider {
4646

4747
// WooSignal Setup
4848
shopify.WooSignalApp? wooSignalApp = await (appWooSignalShopify(
49-
(api) => api.getApp(encrypted: shouldEncrypt())));
49+
(api) => api.getApp(encrypted: shouldEncrypt())));
5050
Locale locale = Locale('en');
5151

5252
if (wooSignalApp != null) {

ShopMax/lib/app/providers/firebase_provider.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ class FirebaseProvider implements NyProvider {
5252
bool? firebaseFcmIsEnabled =
5353
AppHelper.instance.shopifyAppConfig?.firebaseFcmIsEnabled;
5454

55-
5655
firebaseFcmIsEnabled ??= getEnv('FCM_ENABLED', defaultValue: false);
5756

5857
if (firebaseFcmIsEnabled != true) return;

0 commit comments

Comments
 (0)