v6.4.0 updates
This commit is contained in:
parent
7e43b678ea
commit
a50cad6daa
@ -1,3 +1,10 @@
|
|||||||
|
## [6.4.0] - 2023-01-06
|
||||||
|
|
||||||
|
* Upgrade to Nylo v4.0.0
|
||||||
|
* Update copyright
|
||||||
|
* Refactor wp_json_api metadata
|
||||||
|
* Pubspec.yaml dependency updates
|
||||||
|
|
||||||
## [6.3.1] - 2022-11-04
|
## [6.3.1] - 2022-11-04
|
||||||
|
|
||||||
* Fix email address bug in customer_address_input.dart
|
* Fix email address bug in customer_address_input.dart
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
BSD 2-Clause License
|
BSD 2-Clause License
|
||||||
|
|
||||||
Copyright (c) 2022, WooSignal Ltd
|
Copyright (c) 2023, WooSignal Ltd
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
# WooCommerce App: Label StoreMax
|
# WooCommerce App: Label StoreMax
|
||||||
|
|
||||||
### Label StoreMax - v6.3.1
|
### Label StoreMax - v6.4.0
|
||||||
|
|
||||||
|
|
||||||
[Official WooSignal WooCommerce App](https://woosignal.com)
|
[Official WooSignal WooCommerce App](https://woosignal.com)
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
@ -157,19 +157,19 @@ class CustomerAddress {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
List<UserMetaDataItem> toUserMetaDataItem(String type) {
|
List<WpMetaData> toUserMetaDataItem(String type) {
|
||||||
return [
|
return [
|
||||||
UserMetaDataItem(key: "${type}_first_name", value: firstName),
|
WpMetaData(key: "${type}_first_name", value: firstName),
|
||||||
UserMetaDataItem(key: "${type}_last_name", value: lastName),
|
WpMetaData(key: "${type}_last_name", value: lastName),
|
||||||
UserMetaDataItem(key: "${type}_address_1", value: addressLine),
|
WpMetaData(key: "${type}_address_1", value: addressLine),
|
||||||
UserMetaDataItem(key: "${type}_city", value: city),
|
WpMetaData(key: "${type}_city", value: city),
|
||||||
UserMetaDataItem(key: "${type}_postcode", value: postalCode),
|
WpMetaData(key: "${type}_postcode", value: postalCode),
|
||||||
UserMetaDataItem(key: "${type}_phone", value: phoneNumber),
|
WpMetaData(key: "${type}_phone", value: phoneNumber),
|
||||||
if (type != "shipping")
|
if (type != "shipping")
|
||||||
UserMetaDataItem(key: "${type}_email", value: emailAddress),
|
WpMetaData(key: "${type}_email", value: emailAddress),
|
||||||
UserMetaDataItem(
|
WpMetaData(
|
||||||
key: "${type}_country", value: customerCountry?.countryCode),
|
key: "${type}_country", value: customerCountry?.countryCode),
|
||||||
UserMetaDataItem(
|
WpMetaData(
|
||||||
key: "${type}_state",
|
key: "${type}_state",
|
||||||
value: customerCountry?.state?.code
|
value: customerCountry?.state?.code
|
||||||
?.replaceAll("${customerCountry?.countryCode}:", "")),
|
?.replaceAll("${customerCountry?.countryCode}:", "")),
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import 'package:nylo_framework/nylo_framework.dart';
|
|||||||
| ApiService
|
| ApiService
|
||||||
| -------------------------------------------------------------------------
|
| -------------------------------------------------------------------------
|
||||||
| Define your API endpoints
|
| Define your API endpoints
|
||||||
| Learn more https://nylo.dev/docs/3.x/networking
|
| Learn more https://nylo.dev/docs/4.x/networking
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:flutter_app/app/networking/dio/interceptors/logging_interceptor.dart';
|
import 'package:flutter_app/app/networking/dio/interceptors/logging_interceptor.dart';
|
||||||
import 'package:flutter_app/config/decoders.dart';
|
import 'package:flutter_app/config/decoders.dart';
|
||||||
import 'package:nylo_framework/networking/ny_base_networking.dart';
|
import 'package:nylo_framework/networking/ny_base_networking.dart';
|
||||||
|
import 'package:nylo_framework/nylo_framework.dart';
|
||||||
|
|
||||||
class BaseApiService extends NyBaseApiService {
|
class BaseApiService extends NyBaseApiService {
|
||||||
BaseApiService(BuildContext? context) : super(context);
|
BaseApiService(BuildContext? context) : super(context);
|
||||||
@ -12,5 +13,8 @@ class BaseApiService extends NyBaseApiService {
|
|||||||
|
|
||||||
/// Default interceptors
|
/// Default interceptors
|
||||||
@override
|
@override
|
||||||
final interceptors = {LoggingInterceptor: LoggingInterceptor()};
|
final interceptors = {
|
||||||
|
if (getEnv('APP_DEBUG') == true)
|
||||||
|
LoggingInterceptor: LoggingInterceptor()
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,29 +4,23 @@ import 'package:nylo_framework/nylo_framework.dart';
|
|||||||
class LoggingInterceptor extends Interceptor {
|
class LoggingInterceptor extends Interceptor {
|
||||||
@override
|
@override
|
||||||
void onRequest(RequestOptions options, RequestInterceptorHandler handler) {
|
void onRequest(RequestOptions options, RequestInterceptorHandler handler) {
|
||||||
if (getEnv('APP_DEBUG') == true) {
|
print('REQUEST[${options.method}] => PATH: ${options.path}');
|
||||||
print('REQUEST[${options.method}] => PATH: ${options.path}');
|
|
||||||
}
|
|
||||||
return super.onRequest(options, handler);
|
return super.onRequest(options, handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void onResponse(Response response, ResponseInterceptorHandler handler) {
|
void onResponse(Response response, ResponseInterceptorHandler handler) {
|
||||||
if (getEnv('APP_DEBUG') == true) {
|
print(
|
||||||
print(
|
'RESPONSE[${response.statusCode}] => PATH: ${response.requestOptions.path}');
|
||||||
'RESPONSE[${response.statusCode}] => PATH: ${response.requestOptions.path}');
|
print('DATA: ${response.requestOptions.path}');
|
||||||
print('DATA: ${response.requestOptions.path}');
|
log(response.data.toString());
|
||||||
log(response.data.toString());
|
|
||||||
}
|
|
||||||
handler.next(response);
|
handler.next(response);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void onError(DioError err, ErrorInterceptorHandler handler) {
|
void onError(DioError err, ErrorInterceptorHandler handler) {
|
||||||
if (getEnv('APP_DEBUG') == true) {
|
print(
|
||||||
print(
|
'ERROR[${err.response?.statusCode}] => PATH: ${err.requestOptions.path}');
|
||||||
'ERROR[${err.response?.statusCode}] => PATH: ${err.requestOptions.path}');
|
|
||||||
}
|
|
||||||
handler.next(err);
|
handler.next(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,6 +4,7 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter_app/bootstrap/app_helper.dart';
|
import 'package:flutter_app/bootstrap/app_helper.dart';
|
||||||
import 'package:flutter_app/bootstrap/helpers.dart';
|
import 'package:flutter_app/bootstrap/helpers.dart';
|
||||||
|
import 'package:flutter_app/config/design.dart';
|
||||||
import 'package:flutter_app/config/theme.dart';
|
import 'package:flutter_app/config/theme.dart';
|
||||||
import 'package:nylo_framework/nylo_framework.dart';
|
import 'package:nylo_framework/nylo_framework.dart';
|
||||||
import 'package:flutter_app/config/localization.dart';
|
import 'package:flutter_app/config/localization.dart';
|
||||||
@ -108,6 +109,13 @@ class AppProvider implements NyProvider {
|
|||||||
valuesAsMap: valuesAsMap);
|
valuesAsMap: valuesAsMap);
|
||||||
|
|
||||||
nylo.appThemes = appThemes;
|
nylo.appThemes = appThemes;
|
||||||
|
nylo.appLoader = loader;
|
||||||
|
|
||||||
|
String initialRoute = AppHelper.instance.appConfig!.appStatus != null
|
||||||
|
? '/home'
|
||||||
|
: '/no-connection';
|
||||||
|
|
||||||
|
nylo.initialRoute = initialRoute;
|
||||||
|
|
||||||
return nylo;
|
return nylo;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
// Label StoreMAX
|
// Label StoreMAX
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,11 +1,12 @@
|
|||||||
import 'package:flutter_app/app/networking/api_service.dart';
|
import 'package:flutter_app/app/networking/api_service.dart';
|
||||||
|
import 'package:flutter_app/app/networking/dio/base_api_service.dart';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Model Decoders
|
| Model Decoders
|
||||||
| -------------------------------------------------------------------------
|
| -------------------------------------------------------------------------
|
||||||
| Model decoders are used in 'app/networking/' for morphing json payloads
|
| Model decoders are used in 'app/networking/' for morphing json payloads
|
||||||
| into Models. Learn more https://nylo.dev/docs/3.x/decoders#model-decoders
|
| into Models. Learn more https://nylo.dev/docs/4.x/decoders#model-decoders
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -19,11 +20,11 @@ final Map<Type, dynamic> modelDecoders = {
|
|||||||
| -------------------------------------------------------------------------
|
| -------------------------------------------------------------------------
|
||||||
| API decoders are used when you need to access an API service using the
|
| API decoders are used when you need to access an API service using the
|
||||||
| 'api' helper. E.g. api<MyApiService>((request) => request.fetchData());
|
| 'api' helper. E.g. api<MyApiService>((request) => request.fetchData());
|
||||||
| Learn more https://nylo.dev/docs/3.x/decoders#api-decoders
|
| Learn more https://nylo.dev/docs/4.x/decoders#api-decoders
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
final Map<Type, dynamic> apiDecoders = {
|
final Map<Type, BaseApiService> apiDecoders = {
|
||||||
ApiService: ApiService(),
|
ApiService: ApiService(),
|
||||||
|
|
||||||
// ...
|
// ...
|
||||||
|
|||||||
13
LabelStoreMax/lib/config/design.dart
Normal file
13
LabelStoreMax/lib/config/design.dart
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
import 'package:flutter_app/resources/widgets/app_loader_widget.dart';
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Design
|
||||||
|
| Contains widgets used in the Nylo framework.
|
||||||
|
|
|
||||||
|
| Learn more: https://nylo.dev/docs/4.x/themes
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
|
Widget loader = AppLoaderWidget();
|
||||||
@ -8,7 +8,7 @@ import 'package:nylo_framework/nylo_framework.dart';
|
|||||||
| Add your "app/events" here.
|
| Add your "app/events" here.
|
||||||
| Events can be fired using: event<MyEvent>();
|
| Events can be fired using: event<MyEvent>();
|
||||||
|
|
|
|
||||||
| Learn more: https://nylo.dev/docs/3.x/events
|
| Learn more: https://nylo.dev/docs/4.x/events
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
import 'package:flutter_app/app/providers/app_provider.dart';
|
import 'package:flutter_app/app/providers/app_provider.dart';
|
||||||
import 'package:flutter_app/app/providers/event_provider.dart';
|
import 'package:flutter_app/app/providers/event_provider.dart';
|
||||||
import 'package:flutter_app/app/providers/route_provider.dart';
|
import 'package:flutter_app/app/providers/route_provider.dart';
|
||||||
|
import 'package:nylo_framework/nylo_framework.dart';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@ -8,11 +9,11 @@ import 'package:flutter_app/app/providers/route_provider.dart';
|
|||||||
| Add your "app/providers" here.
|
| Add your "app/providers" here.
|
||||||
| Providers are booted when your application start.
|
| Providers are booted when your application start.
|
||||||
|
|
|
|
||||||
| Learn more: https://nylo.dev/docs/3.x/providers
|
| Learn more: https://nylo.dev/docs/4.x/providers
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
final providers = {
|
final Map<Type, NyProvider> providers = {
|
||||||
AppProvider: AppProvider(),
|
AppProvider: AppProvider(),
|
||||||
RouteProvider: RouteProvider(),
|
RouteProvider: RouteProvider(),
|
||||||
EventProvider: EventProvider(),
|
EventProvider: EventProvider(),
|
||||||
|
|||||||
@ -8,15 +8,11 @@ void main() async {
|
|||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
Nylo nylo = await Nylo.init(setup: Boot.nylo, setupFinished: Boot.finished);
|
Nylo nylo = await Nylo.init(setup: Boot.nylo, setupFinished: Boot.finished);
|
||||||
|
|
||||||
String initialRoute = AppHelper.instance.appConfig!.appStatus != null
|
|
||||||
? '/home'
|
|
||||||
: '/no-connection';
|
|
||||||
|
|
||||||
runApp(
|
runApp(
|
||||||
AppBuild(
|
AppBuild(
|
||||||
navigatorKey: NyNavigator.instance.router.navigatorKey,
|
navigatorKey: NyNavigator.instance.router.navigatorKey,
|
||||||
onGenerateRoute: nylo.router!.generator(),
|
onGenerateRoute: nylo.router!.generator(),
|
||||||
initialRoute: initialRoute,
|
initialRoute: nylo.initialRoute,
|
||||||
debugShowCheckedModeBanner: false,
|
debugShowCheckedModeBanner: false,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@ -1,3 +1,13 @@
|
|||||||
|
// Label StoreMax
|
||||||
|
//
|
||||||
|
// Created by Anthony Gordon.
|
||||||
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_app/bootstrap/shared_pref/sp_auth.dart';
|
import 'package:flutter_app/bootstrap/shared_pref/sp_auth.dart';
|
||||||
import 'package:flutter_app/resources/widgets/buttons.dart';
|
import 'package:flutter_app/resources/widgets/buttons.dart';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
@ -279,7 +279,7 @@ class _AccountShippingDetailsPageState
|
|||||||
WPUserInfoUpdatedResponse? wpUserInfoUpdatedResponse;
|
WPUserInfoUpdatedResponse? wpUserInfoUpdatedResponse;
|
||||||
try {
|
try {
|
||||||
wpUserInfoUpdatedResponse = await WPJsonAPI.instance.api(
|
wpUserInfoUpdatedResponse = await WPJsonAPI.instance.api(
|
||||||
(request) => request.wpUpdateUserInfo(userToken, wpUserMetaData: [
|
(request) => request.wpUpdateUserInfo(userToken, metaData: [
|
||||||
...userBillingAddress.toUserMetaDataItem('billing'),
|
...userBillingAddress.toUserMetaDataItem('billing'),
|
||||||
...userShippingAddress.toUserMetaDataItem('shipping'),
|
...userShippingAddress.toUserMetaDataItem('shipping'),
|
||||||
]),
|
]),
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
@ -395,7 +395,7 @@ class _CheckoutDetailsPageState extends NyState<CheckoutDetailsPage> {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await WPJsonAPI.instance.api(
|
await WPJsonAPI.instance.api(
|
||||||
(request) => request.wpUpdateUserInfo(userToken, wpUserMetaData: [
|
(request) => request.wpUpdateUserInfo(userToken, metaData: [
|
||||||
...?billingDetails.billingAddress?.toUserMetaDataItem('billing'),
|
...?billingDetails.billingAddress?.toUserMetaDataItem('billing'),
|
||||||
...?billingDetails.shippingAddress
|
...?billingDetails.shippingAddress
|
||||||
?.toUserMetaDataItem('shipping'),
|
?.toUserMetaDataItem('shipping'),
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,3 +1,13 @@
|
|||||||
|
// Label StoreMax
|
||||||
|
//
|
||||||
|
// Created by Anthony Gordon.
|
||||||
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_app/app/models/cart.dart';
|
import 'package:flutter_app/app/models/cart.dart';
|
||||||
import 'package:flutter_app/app/models/cart_line_item.dart';
|
import 'package:flutter_app/app/models/cart_line_item.dart';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// StoreMob
|
// StoreMob
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,3 +1,13 @@
|
|||||||
|
// Label StoreMax
|
||||||
|
//
|
||||||
|
// Created by Anthony Gordon.
|
||||||
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_app/bootstrap/helpers.dart';
|
import 'package:flutter_app/bootstrap/helpers.dart';
|
||||||
import 'package:flutter_app/resources/widgets/app_loader_widget.dart';
|
import 'package:flutter_app/resources/widgets/app_loader_widget.dart';
|
||||||
|
|||||||
@ -47,11 +47,11 @@ ThemeData darkTheme(ColorStyles darkColors) {
|
|||||||
colorScheme: ColorScheme.light(primary: darkColors.buttonBackground),
|
colorScheme: ColorScheme.light(primary: darkColors.buttonBackground),
|
||||||
),
|
),
|
||||||
textButtonTheme: TextButtonThemeData(
|
textButtonTheme: TextButtonThemeData(
|
||||||
style: TextButton.styleFrom(primary: darkColors.primaryContent),
|
style: TextButton.styleFrom(foregroundColor: darkColors.primaryContent),
|
||||||
),
|
),
|
||||||
elevatedButtonTheme: ElevatedButtonThemeData(
|
elevatedButtonTheme: ElevatedButtonThemeData(
|
||||||
style: TextButton.styleFrom(
|
style: TextButton.styleFrom(
|
||||||
primary: darkColors.buttonPrimaryContent,
|
foregroundColor: darkColors.buttonPrimaryContent,
|
||||||
backgroundColor: darkColors.buttonBackground),
|
backgroundColor: darkColors.buttonBackground),
|
||||||
),
|
),
|
||||||
bottomNavigationBarTheme: BottomNavigationBarThemeData(
|
bottomNavigationBarTheme: BottomNavigationBarThemeData(
|
||||||
|
|||||||
@ -49,11 +49,11 @@ ThemeData lightTheme(ColorStyles lightColors) {
|
|||||||
colorScheme: ColorScheme.light(primary: lightColors.buttonBackground),
|
colorScheme: ColorScheme.light(primary: lightColors.buttonBackground),
|
||||||
),
|
),
|
||||||
textButtonTheme: TextButtonThemeData(
|
textButtonTheme: TextButtonThemeData(
|
||||||
style: TextButton.styleFrom(primary: lightColors.primaryContent),
|
style: TextButton.styleFrom(foregroundColor: lightColors.primaryContent),
|
||||||
),
|
),
|
||||||
elevatedButtonTheme: ElevatedButtonThemeData(
|
elevatedButtonTheme: ElevatedButtonThemeData(
|
||||||
style: TextButton.styleFrom(
|
style: TextButton.styleFrom(
|
||||||
primary: lightColors.buttonPrimaryContent,
|
foregroundColor: lightColors.buttonPrimaryContent,
|
||||||
backgroundColor: lightColors.buttonBackground),
|
backgroundColor: lightColors.buttonBackground),
|
||||||
),
|
),
|
||||||
bottomNavigationBarTheme: BottomNavigationBarThemeData(
|
bottomNavigationBarTheme: BottomNavigationBarThemeData(
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,3 +1,13 @@
|
|||||||
|
// Label StoreMax
|
||||||
|
//
|
||||||
|
// Created by Anthony Gordon.
|
||||||
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class CategorySubcategoryScrollWidget extends StatefulWidget {
|
class CategorySubcategoryScrollWidget extends StatefulWidget {
|
||||||
|
|||||||
@ -1,3 +1,13 @@
|
|||||||
|
// Label StoreMax
|
||||||
|
//
|
||||||
|
// Created by Anthony Gordon.
|
||||||
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_app/app/models/cart.dart';
|
import 'package:flutter_app/app/models/cart.dart';
|
||||||
import 'package:flutter_app/app/models/checkout_session.dart';
|
import 'package:flutter_app/app/models/checkout_session.dart';
|
||||||
|
|||||||
@ -1,3 +1,13 @@
|
|||||||
|
// Label StoreMax
|
||||||
|
//
|
||||||
|
// Created by Anthony Gordon.
|
||||||
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_app/app/models/checkout_session.dart';
|
import 'package:flutter_app/app/models/checkout_session.dart';
|
||||||
import 'package:flutter_app/resources/widgets/woosignal_ui.dart';
|
import 'package:flutter_app/resources/widgets/woosignal_ui.dart';
|
||||||
|
|||||||
@ -1,5 +1,14 @@
|
|||||||
import 'dart:io';
|
// Label StoreMax
|
||||||
|
//
|
||||||
|
// Created by Anthony Gordon.
|
||||||
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
|
||||||
|
import 'dart:io';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_app/app/models/cart_line_item.dart';
|
import 'package:flutter_app/app/models/cart_line_item.dart';
|
||||||
import 'package:flutter_app/app/models/checkout_session.dart';
|
import 'package:flutter_app/app/models/checkout_session.dart';
|
||||||
|
|||||||
@ -1,3 +1,13 @@
|
|||||||
|
// Label StoreMax
|
||||||
|
//
|
||||||
|
// Created by Anthony Gordon.
|
||||||
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_app/app/models/checkout_session.dart';
|
import 'package:flutter_app/app/models/checkout_session.dart';
|
||||||
import 'package:nylo_framework/nylo_framework.dart';
|
import 'package:nylo_framework/nylo_framework.dart';
|
||||||
|
|||||||
@ -1,3 +1,13 @@
|
|||||||
|
// Label StoreMax
|
||||||
|
//
|
||||||
|
// Created by Anthony Gordon.
|
||||||
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_app/app/models/checkout_session.dart';
|
import 'package:flutter_app/app/models/checkout_session.dart';
|
||||||
import 'package:flutter_app/app/models/customer_address.dart';
|
import 'package:flutter_app/app/models/customer_address.dart';
|
||||||
|
|||||||
@ -1,3 +1,13 @@
|
|||||||
|
// Label StoreMax
|
||||||
|
//
|
||||||
|
// Created by Anthony Gordon.
|
||||||
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_app/resources/widgets/woosignal_ui.dart';
|
import 'package:flutter_app/resources/widgets/woosignal_ui.dart';
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,13 @@
|
|||||||
|
// Label StoreMax
|
||||||
|
//
|
||||||
|
// Created by Anthony Gordon.
|
||||||
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_app/app/models/checkout_session.dart';
|
import 'package:flutter_app/app/models/checkout_session.dart';
|
||||||
import 'package:flutter_app/resources/widgets/woosignal_ui.dart';
|
import 'package:flutter_app/resources/widgets/woosignal_ui.dart';
|
||||||
|
|||||||
@ -1,3 +1,13 @@
|
|||||||
|
// Label StoreMax
|
||||||
|
//
|
||||||
|
// Created by Anthony Gordon.
|
||||||
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
|
||||||
import 'package:auto_size_text/auto_size_text.dart';
|
import 'package:auto_size_text/auto_size_text.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_app/bootstrap/helpers.dart';
|
import 'package:flutter_app/bootstrap/helpers.dart';
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
@ -1,3 +1,13 @@
|
|||||||
|
// Label StoreMax
|
||||||
|
//
|
||||||
|
// Created by Anthony Gordon.
|
||||||
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_app/app/controllers/product_loader_controller.dart';
|
import 'package:flutter_app/app/controllers/product_loader_controller.dart';
|
||||||
import 'package:flutter_app/bootstrap/helpers.dart';
|
import 'package:flutter_app/bootstrap/helpers.dart';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Label StoreMax
|
// Label StoreMax
|
||||||
//
|
//
|
||||||
// Created by Anthony Gordon.
|
// Created by Anthony Gordon.
|
||||||
// 2022, WooSignal Ltd. All rights reserved.
|
// 2023, WooSignal Ltd. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user