Giter Club home page Giter Club logo

woosignal / flutter-woocommerce-app Goto Github PK

View Code? Open in Web Editor NEW
585.0 28.0 222.0 3.78 MB

WooCommerce App template that uses Flutter. Integrated to work with WooCommerce stores, connect and create an IOS and Android app from Flutter for IOS and Android

Home Page: https://woosignal.com

License: BSD 2-Clause "Simplified" License

Kotlin 0.04% Swift 0.14% Objective-C 0.01% Dart 99.81%
flutter woocommerce app dart wordpress ecommerce template woosignal flutter-apps woocommerce-app flutter-woocommerce woocommerce-flutter android ios

flutter-woocommerce-app's Introduction

WooSignal logo

WooCommerce App: Label StoreMax

Label StoreMax

Official WooSignal WooCommerce App

alt text

alt text

alt text

alt text

About Label StoreMax

Label StoreMax is an App Template for WooCommerce stores. Your customers will be able to browse products, make orders and login via WordPress. You can also customise the look and feel of the app in the WooSignal dashboard.

You can also upload the app to the IOS app store and Google play store using Flutter.

Requirements

  • WooCommerce Store 3.5+
  • Android Studio/VSCode (for running the app)
  • Flutter installed

Getting Started

  1. Download/Clone this repository
  2. Sign up for free on WooSignal and link your WooCommerce store
  3. Add your app key into the .env file and hit play (with Android Studio) to build the app ๐Ÿฅณ

Full documentation this available here

Some features integrated

  • App Store Ready
  • Simple configuration
  • Browse products, make orders, customer login (via WordPress)
  • Change app name, logo, customize default language, currency + more
  • Light and dark mode
  • Theme customization
  • Stripe, Cash On Delivery, PayPal, RazorPay
  • Localized for en, es, pt, it, hi, fr, zh, tr, nl
  • Orders show as normal in WooCommerce

Security Vulnerabilities

If you discover a security vulnerability within WooSignal, please send an e-mail [email protected]

Uploading to the app stores

Licence

The Label StoreMax framework is open-sourced software licensed under the MIT license.

flutter-woocommerce-app's People

Contributors

agordn52 avatar agwoosignal avatar jeanmatthieud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flutter-woocommerce-app's Issues

[Bug] Checkout : "phone" field

Clearing the phone field during checkout creates an exception:

โ•โ•โ•โ•โ•โ•โ•โ• Exception caught by widgets library โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
The following _CastError was thrown building StatefulBuilder(state: _StatefulBuilderState#bc203):
Null check operator used on a null value

The relevant error-causing widget was
MaterialApp
lib\bootstrap\app.dart:76
When the exception was thrown, this was the stack
#0      _CheckoutDetailsPageState._setFields
package:flutter_app/โ€ฆ/pages/checkout_details.dart:153
#1      _CheckoutDetailsPageState._setFieldsFromCustomerAddress
package:flutter_app/โ€ฆ/pages/checkout_details.dart:124
#2      _CheckoutDetailsPageState.initState
package:flutter_app/โ€ฆ/pages/checkout_details.dart:96
#3      StatefulElement._firstBuild
package:flutter/โ€ฆ/widgets/framework.dart:5015
#4      ComponentElement.mount
package:flutter/โ€ฆ/widgets/framework.dart:4853
...     Normal element mounting (167 frames)

pub get failed

when i run packages get i get this issue

Running "flutter pub get" in LabelStoreMax...
Because every version of flutter_test from sdk depends on path 1.6.2 and dio 3.0.9 depends on path ^1.6.4, flutter_test from sdk is incompatible with dio 3.0.9.

And because no versions of dio match >3.0.9 <4.0.0, flutter_test from sdk is incompatible with dio ^3.0.9.

So, because label_storemax depends on both dio ^3.0.9 and flutter_test any from sdk, version solving failed.
pub get failed (1)
Process finished with exit code 1

Target Android 12

The app should start to target Android 12 and the code should be adapted:

One or more plugins require a higher Android SDK version.
Fix this issue by adding the following to C:\Users\jeanm\dev\bipbipbat\bipbipbat-mobile\LabelStoreMax\android\app\build.gradle:
android {
  compileSdkVersion 33
  ...
}

Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.

[Bug] Shipping zone with postcode limits

In WooCommerce, you can add a shipping zone defined by a country, and only include some postcodes.

Eg:
image

The current source code gets a list of locations from WooSignal, which mix country and postcode, without any hierarchy:
image

So, the WooSignal server side should be fixed, as well as the mobile app.

Moreover, the sentence "Shipping is not supported for your country, sorry" should be "Shipping is not supported for your location, sorry"

WooSignal backend dependices

Right now it's impossible to use Woocommerce api and Woocommerce app with any Woocommerce store without WooSignal.

What I did to make this happen:

  1. Changed the ApiProvider class and changed the post method and copied/pasted some code from other dart Woocommerce api library to make my call to any http/https Woocommerce store.

  2. Removed checkCart api and functionally.

  3. Still trying to figure how to change shipping address api.

Is it possible to refactor some codes in the future in such a way that we could link the template to any Woocommerce backend ?

Thanks.

lib/main.dart:220:23: Error: Method not found: 'Hexcolor'.

lib/main.dart:220:23: Error: Method not found: 'Hexcolor'.
primaryColor: Hexcolor("#2f4ffe"),
^^^^^^^^
lib/main.dart:224:24: Error: Method not found: 'Hexcolor'.
buttonColor: Hexcolor("#529cda"),
^^^^^^^^
lib/pages/account_billing_details.dart:184:40: Error: The method 'Hexcolor' isn't defined for the class '_AccountBillingDetailsPageState'.

  • '_AccountBillingDetailsPageState' is from 'package:label_storemax/pages/account_billing_details.dart' ('lib/pages/account_billing_details.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'Hexcolor'.
    color: Hexcolor("#e8e8e8"),
    ^^^^^^^^
    lib/pages/account_detail.dart:348:42: Error: The method 'Hexcolor' isn't defined for the class '_AccountDetailPageState'.
  • '_AccountDetailPageState' is from 'package:label_storemax/pages/account_detail.dart' ('lib/pages/account_detail.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'Hexcolor'.
    color: Hexcolor("#fcfcfc"),
    ^^^^^^^^
    lib/pages/account_order_detail.dart:123:44: Error: The method 'Hexcolor' isn't defined for the class '_AccountOrderDetailPageState'.
  • '_AccountOrderDetailPageState' is from 'package:label_storemax/pages/account_order_detail.dart' ('lib/pages/account_order_detail.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'Hexcolor'.
    color: Hexcolor("#fcfcfc"), width: 1),
    ^^^^^^^^
    lib/pages/account_shipping_details.dart:203:40: Error: The method 'Hexcolor' isn't defined for the class '_AccountShippingDetailsPageState'.
  • '_AccountShippingDetailsPageState' is from 'package:label_storemax/pages/account_shipping_details.dart' ('lib/pages/account_shipping_details.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'Hexcolor'.
    color: Hexcolor("#e8e8e8"),
    ^^^^^^^^
    lib/helpers/app_themes.dart:45:16: Error: Method not found: 'Hexcolor'.
    color: Hexcolor("#606060"),
    ^^^^^^^^
    lib/helpers/app_themes.dart:49:16: Error: Method not found: 'Hexcolor'.
    color: Hexcolor("#a8a8a8"),
    ^^^^^^^^
    lib/helpers/app_themes.dart:54:16: Error: Method not found: 'Hexcolor'.
    color: Hexcolor("#2a5080"),
    ^^^^^^^^
    lib/helpers/app_themes.dart:94:16: Error: Method not found: 'Hexcolor'.
    color: Hexcolor("#606060"),
    ^^^^^^^^
    lib/helpers/app_themes.dart:98:16: Error: Method not found: 'Hexcolor'.
    color: Hexcolor("#a8a8a8"),
    ^^^^^^^^
    lib/helpers/app_themes.dart:103:16: Error: Method not found: 'Hexcolor'.
    color: Hexcolor("#2a5080"),
    ^^^^^^^^
    lib/widgets/app_loader.dart:16:37: Error: Method not found: 'Hexcolor'.
    return SpinKitDoubleBounce(color: Hexcolor("#393318"));
    ^^^^^^^^
    lib/widgets/buttons.dart:46:14: Error: Method not found: 'Hexcolor'.
    color: Hexcolor("#f6f6f9"),
    ^^^^^^^^
    lib/widgets/woosignal_ui.dart:197:14: Error: Method not found: 'Hexcolor'.
    color: Hexcolor("#e8e8e8"),
    ^^^^^^^^

FAILURE: Build failed with an exception.

  • Where:
    Script 'G:\flutter_windows_1.22.5-stable\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 904

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'G:\flutter_windows_1.22.5-stable\flutter\bin\flutter.bat'' finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 5m 3s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 311.2s (!)
Exception: Gradle task assembleDebug failed with exit code 1

G:\flutter-woocommerce-app-master\flutter-woocommerce-app-master\LabelStoreMax>flutter run
Launching lib\main.dart on CPH1803 in debug mode...
lib/main.dart:220:23: Error: Method not found: 'Hexcolor'.
primaryColor: Hexcolor("#2f4ffe"),
^^^^^^^^
lib/main.dart:224:24: Error: Method not found: 'Hexcolor'.
buttonColor: Hexcolor("#529cda"),
^^^^^^^^
lib/pages/account_billing_details.dart:184:40: Error: The method 'Hexcolor' isn't defined for the class '_AccountBillingDetailsPageState'.

  • '_AccountBillingDetailsPageState' is from 'package:label_storemax/pages/account_billing_details.dart' ('lib/pages/account_billing_details.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'Hexcolor'.
    color: Hexcolor("#e8e8e8"),
    ^^^^^^^^
    lib/pages/account_detail.dart:348:42: Error: The method 'Hexcolor' isn't defined for the class '_AccountDetailPageState'.
  • '_AccountDetailPageState' is from 'package:label_storemax/pages/account_detail.dart' ('lib/pages/account_detail.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'Hexcolor'.
    color: Hexcolor("#fcfcfc"),
    ^^^^^^^^
    lib/pages/account_order_detail.dart:123:44: Error: The method 'Hexcolor' isn't defined for the class '_AccountOrderDetailPageState'.
  • '_AccountOrderDetailPageState' is from 'package:label_storemax/pages/account_order_detail.dart' ('lib/pages/account_order_detail.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'Hexcolor'.
    color: Hexcolor("#fcfcfc"), width: 1),
    ^^^^^^^^
    lib/pages/account_shipping_details.dart:203:40: Error: The method 'Hexcolor' isn't defined for the class '_AccountShippingDetailsPageState'.
  • '_AccountShippingDetailsPageState' is from 'package:label_storemax/pages/account_shipping_details.dart' ('lib/pages/account_shipping_details.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'Hexcolor'.
    color: Hexcolor("#e8e8e8"),
    ^^^^^^^^
    lib/helpers/app_themes.dart:45:16: Error: Method not found: 'Hexcolor'.
    color: Hexcolor("#606060"),
    ^^^^^^^^
    lib/helpers/app_themes.dart:49:16: Error: Method not found: 'Hexcolor'.
    color: Hexcolor("#a8a8a8"),
    ^^^^^^^^
    lib/helpers/app_themes.dart:54:16: Error: Method not found: 'Hexcolor'.
    color: Hexcolor("#2a5080"),
    ^^^^^^^^
    lib/helpers/app_themes.dart:94:16: Error: Method not found: 'Hexcolor'.
    color: Hexcolor("#606060"),
    ^^^^^^^^
    lib/helpers/app_themes.dart:98:16: Error: Method not found: 'Hexcolor'.
    color: Hexcolor("#a8a8a8"),
    ^^^^^^^^
    lib/helpers/app_themes.dart:103:16: Error: Method not found: 'Hexcolor'.
    color: Hexcolor("#2a5080"),
    ^^^^^^^^
    lib/widgets/app_loader.dart:16:37: Error: Method not found: 'Hexcolor'.
    return SpinKitDoubleBounce(color: Hexcolor("#393318"));
    ^^^^^^^^
    lib/widgets/buttons.dart:46:14: Error: Method not found: 'Hexcolor'.
    color: Hexcolor("#f6f6f9"),
    ^^^^^^^^
    lib/widgets/woosignal_ui.dart:197:14: Error: Method not found: 'Hexcolor'.
    color: Hexcolor("#e8e8e8"),
    ^^^^^^^^

FAILURE: Build failed with an exception.

  • Where:
    Script 'G:\flutter_windows_1.22.5-stable\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 904

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'G:\flutter_windows_1.22.5-stable\flutter\bin\flutter.bat'' finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 57s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 61.4s
Exception: Gradle task assembleDebug failed with exit code 1

Warning: You are using these overridden dependencies: ! intl 0.16.1 flutter

After doing flutter clean then on doing flutter run -d web-server I'm getting this error

Warning: You are using these overridden dependencies:                      
! intl 0.16.1
Running "flutter pub get" in flutter-woocommerce-app-master...         2.3s
Your Flutter application is created using an older version of the Android embedding. It's being deprecated in favor of Android embedding v2. Follow the steps on https://flutter.dev/go/android-project-migration to migrate your project.
This application is not configured to build on the web.
To add web support to a project, run `flutter create .`.
Launching lib\main.dart on Web Server in debug mode...
Your Flutter application is created using an older version of the Android embedding. It's being deprecated in favor of Android embedding v2. Follow the steps on https://flutter.dev/go/android-project-migration to migrate your project.
org-dartlang-app:/web_entrypoint.dart:9:8: Error: Error when reading 'lib/generated_plugin_registrant.dart': The system cannot find the file specified.

import 'package:label_storemax/generated_plugin_registrant.dart';
       ^
Syncing files to device Web Server...
org-dartlang-app:/web_entrypoint.dart:14:3: Error: Method not found: 'registerPlugins'.
  registerPlugins(webPluginRegistry);
  ^^^^^^^^^^^^^^^
Syncing files to device Web Server...                           19,021ms (!)
Failed to compile application.

Upon following the steps given in the link above and doing flutter pub upgrade and then on doing flutter run -d web-server, I'm getting error that goes to infinity. I wasn't even able to catch what it was saying

wp_login : true causes bug

REQUEST: https://{domain}/wp-json/wpapp/auth/v1/nonce
Payload: {}
RESULT: {"code":"rest_no_route","message":"No route was โ€ฆ

flutter_localizations Error!!!!!

Because every version of flutter_localizations from sdk depends on intl 0.16.0 and flutter_money_formatter >=0.8.2 depends on intl ^0.15.8, flutter_localizations from sdk is incompatible with flutter_money_formatter >=0.8.2.

So, because flutter_woocomerce depends on both flutter_money_formatter ^0.8.2 and flutter_localizations any from SDK, version solving failed.
pub get failed (1; So, because flutter_woocomerce depends on both flutter_money_formatter ^0.8.2 and flutter_localizations
any from SDK, version solving failed.)
exit code 1

error

[Bug] Dark mode

The navigation drawer and checkout page are not great in dark mode (v6.2)
Screenshot_1662535356

Screenshot_1662535411

Refactor app into small widgets

Is it possible to convert this app into Flutter WooCommerce Widgets library it would be more useful and could minimize the efforts when building multiple stores.

After the refactoring it would be possible to build assembled app from the core widgets library, this would give us more fixable themes and solve sync issue when any new changes or features add to the core widgets.

There's no constant named error and pub get error

i have 5 error in dart analysis
error: There's no constant named 'downToUp' in 'PageTransitionType'. (undefined_enum_constant at [label_storemax] lib\main.dart:87)
and when i run pub get i get this error

Warning: You are using these overridden dependencies:
! intl 0.16.1

Facing compilation errors building for Android

Hi Project Developer,

I've just been trying this project today and came into a few issues while compiling an Android build-

  1. lib/pages/account_detail.dart:120:7: Error: No named parameter with the name 'resizeToAvoidBottomPadding'.
    resizeToAvoidBottomPadding: false,
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  2. ../../../flutter/flutter_sdk/packages/flutter_localizations/lib/src/material_localizations.dart:413:7: Error: Method 'replaceFirst' cannot be called on 'String?' because it is potentially null.
    Try calling using ?. instead.
    ).replaceFirst(r'$selectedRowCount', formatDecimal(selectedRowCount));

There are repeats of errors 1 & 2, which makes me wonder if I should be switching to a particular version of Flutter.

flutter --version
Flutter 2.0.0 โ€ข channel stable โ€ข https://github.com/flutter/flutter.git
Framework โ€ข revision 60bd88df91 (11 hours ago) โ€ข 2021-03-03 09:13:17 -0800
Engine โ€ข revision 40441def69
Tools โ€ข Dart 2.12.0
LabelStoreMax (master)*$ flutter channel
Flutter channels:
master
dev
beta

  • stable

I've been checking out your project and hope to use it/ contribute if it serves our needs.

Regards,
Anthony

Cannot fetch products | Unhandled Exception: type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List<dynamic>' in type cast

D/ViewRootImpl@3ef15c2MainActivity: Relayout returned: old=[0,0][1080,1920] new=[0,0][1080,1920] result=0x1 surface={true 3483224064} changed=false
I/flutter ( 4825): WOOSIGNAL LOG: Parameters: {page: 1, per_page: 50, status: publish, stock_status: instock}
E/flutter ( 4825): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List' in type cast
E/flutter ( 4825): #0 WooSignal.getProducts. (package:woosignal/woosignal.dart:151:24)
E/flutter ( 4825): #1 _rootRunUnary (dart:async/zone.dart:1192:38)
E/flutter ( 4825): #2 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
E/flutter ( 4825): #3 _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
E/flutter ( 4825): #4 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
E/flutter ( 4825): #5 Future._propagateToListeners (dart:async/future_impl.dart:711:32)
E/flutter ( 4825): #6 Future._completeWithValue (dart:async/future_impl.dart:526:5)
E/flutter ( 4825): #7 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:36:15)
E/flutter ( 4825): #8 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:298:13)
E/flutter ( 4825): #9 ApiProvider.post (package:woosignal/networking/api_provider.dart)
E/flutter ( 4825):
E/flutter ( 4825): #10 WooSignal.getProducts (package:woosignal/woosignal.dart:150:24)
E/flutter ( 4825): #11 _HomePageState._fetchMoreProducts. (package:label_storemax/pages/home.dart:74:65)
E/flutter ( 4825): #12 appWooSignal (package:label_storemax/helpers/tools.dart:38:19)
E/flutter ( 4825):
E/flutter ( 4825): #13 _HomePageState._fetchMoreProducts (package:label_storemax/pages/home.dart:74:39)
E/flutter ( 4825): #14 _HomePageState._home (package:label_storemax/pages/home.dart:53:11)
E/flutter ( 4825): #15 _HomePageState.initState (package:label_storemax/pages/home.dart:47:5)
E/flutter ( 4825): #16 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4640:58)
E/flutter ( 4825): #17 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
E/flutter ( 4825): #18 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
E/flutter ( 4825): #19 Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
E/flutter ( 4825): #20 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
E/flutter ( 4825): #21 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
E/flutter ( 4825): #22 Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
E/flutter ( 4825): #23 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
E/flutter ( 4825): #24 Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
E/flutter ( 4825): #25 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
E/flutter ( 4825): #26 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
E/flutter ( 4825): #27 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
E/flutter ( 4825): #28 Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
E/flutter ( 4825): #29 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
E/flutter ( 4825): #30 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
E/flutter ( 4825): #31 Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
E/flutter ( 4825): #32 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
E/flutter ( 4825): #33 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
E/flutter ( 4825): #34 Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
E/flutter ( 4825): #35 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
E/flutter ( 4825): #36 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
E/flutter ( 4825): #37 Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
E/flutter ( 4825): #38 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
E/flutter ( 4825): #39 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
E/flutter ( 4825): #40 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
E/flutter ( 4825): #41 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
E/flutter ( 4825): #42 Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
E/flutter ( 4825): #43 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
E/flutter ( 4825): #44 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
E/flutter ( 4825): #45 Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
E/flutter ( 4825): #46 SingleChildRende

Error on Pub get and code

When i run pub get i get this error

and there is more error on dart code

error: The named parameter 'headline4' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:17)
error: The named parameter 'headline3' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:22)
error: The named parameter 'headline2' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:26)
error: The named parameter 'headline1' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:30)
error: The named parameter 'headline5' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:34)
error: The named parameter 'headline6' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:35)
error: The named parameter 'subtitle1' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:39)
error: The named parameter 'bodyText1' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:43)
error: The named parameter 'bodyText2' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:47)
error: The named parameter 'headline4' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:66)
error: The named parameter 'headline3' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:71)
error: The named parameter 'headline2' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:75)
error: The named parameter 'headline1' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:79)
error: The named parameter 'headline5' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:83)
error: The named parameter 'headline6' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:84)
error: The named parameter 'subtitle1' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:88)
error: The named parameter 'bodyText1' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:92)
error: The named parameter 'bodyText2' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:96)
error: The named parameter 'headline4' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:115)
error: The named parameter 'headline3' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:119)
error: The named parameter 'headline2' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:120)
error: The named parameter 'headline1' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:121)
error: The named parameter 'headline5' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:122)
error: The named parameter 'headline6' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:123)
error: The named parameter 'subtitle1' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:124)
error: The named parameter 'bodyText1' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:125)
error: The named parameter 'bodyText2' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:126)
error: The named parameter 'headline4' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:135)
error: The named parameter 'headline3' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:136)
error: The named parameter 'headline2' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:137)
error: The named parameter 'headline1' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:138)
error: The named parameter 'headline5' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:139)
error: The named parameter 'headline6' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:140)
error: The named parameter 'subtitle1' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:144)
error: The named parameter 'bodyText1' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:145)
error: The named parameter 'bodyText2' isn't defined. (undefined_named_parameter at [label_storemax] lib\helpers\app_themes.dart:146)
error: The getter 'headline6' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\about.dart:43)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\about.dart:92)
error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\account_billing_details.dart:92)
error: The getter 'headline6' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\account_detail.dart:90)
error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\account_detail.dart:338)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\account_detail.dart:350)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\account_detail.dart:373)
error: The getter 'headline4' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\account_landing.dart:71)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\account_landing.dart:123)
error: The getter 'headline6' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\account_order_detail.dart:56)
error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\account_order_detail.dart:158)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\account_order_detail.dart:170)
error: The getter 'headline6' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\account_register.dart:61)
error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\account_shipping_details.dart:93)
error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\browse_category.dart:93)
error: The getter 'headline6' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\browse_category.dart:95)
error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\browse_search.dart:87)
error: The getter 'headline6' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\browse_search.dart:89)
error: The getter 'headline6' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\cart.dart:179)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\cart.dart:189)
error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\cart.dart:221)
error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\checkout_confirmation.dart:196)
error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\checkout_confirmation.dart:321)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\checkout_details.dart:386)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\checkout_details.dart:435)
error: The getter 'headline6' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\checkout_details.dart:470)
error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\checkout_details.dart:505)
error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\checkout_details.dart:538)
error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\checkout_details.dart:589)
error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\checkout_details.dart:603)
error: The getter 'headline6' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\checkout_payment_type.dart:46)
error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\checkout_payment_type.dart:90)
error: The getter 'headline6' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\checkout_shipping_type.dart:204)
error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\checkout_shipping_type.dart:253)
error: The getter 'headline6' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\checkout_shipping_type.dart:317)
error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\checkout_status.dart:63)
error: The getter 'headline6' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\checkout_status.dart:69)
error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\checkout_status.dart:74)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\checkout_status.dart:81)
error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\checkout_status.dart:111)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\checkout_status.dart:138)
error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\checkout_status.dart:147)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\checkout_status.dart:156)
error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\error_page.dart:49)
error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\home.dart:151)
error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\home.dart:156)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\home.dart:167)
error: The getter 'headline6' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\home_menu.dart:42)
error: The getter 'headline3' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\home_search.dart:64)
error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\product_detail.dart:116)
error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\product_detail.dart:162)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\product_detail.dart:166)
error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\product_detail.dart:194)
error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\product_detail.dart:202)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\product_detail.dart:340)
error: The getter 'headline4' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\product_detail.dart:359)
error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\product_detail.dart:415)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\product_detail.dart:468)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\product_detail.dart:483)
error: The getter 'headline4' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\pages\product_detail.dart:509)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\buttons.dart:42)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\buttons.dart:63)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\cart_icon.dart:43)
error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\menu_item.dart:28)
error: The getter 'headline6' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\woosignal_ui.dart:31)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\woosignal_ui.dart:41)
error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\woosignal_ui.dart:55)
error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\woosignal_ui.dart:77)
error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\woosignal_ui.dart:97)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\woosignal_ui.dart:146)
error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\woosignal_ui.dart:154)
error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\woosignal_ui.dart:177)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\woosignal_ui.dart:184)
error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\woosignal_ui.dart:240)
error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\woosignal_ui.dart:253)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\woosignal_ui.dart:266)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\woosignal_ui.dart:272)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\woosignal_ui.dart:281)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\woosignal_ui.dart:292)
error: The getter 'headline4' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\woosignal_ui.dart:339)
error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\woosignal_ui.dart:527)
error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\woosignal_ui.dart:533)
error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\woosignal_ui.dart:545)
error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\woosignal_ui.dart:551)
error: The getter 'headline6' isn't defined for the class 'TextTheme'. (undefined_getter at [label_storemax] lib\widgets\woosignal_ui.dart:578)
info: Name non-constant identifiers using lowerCamelCase. (non_constant_identifier_names at [label_storemax] lib\helpers\tools.dart:72)
info: Name non-constant identifiers using lowerCamelCase. (non_constant_identifier_names at [label_storemax] lib\helpers\tools.dart:73)
info: Name non-constant identifiers using lowerCamelCase. (non_constant_identifier_names at [label_storemax] lib\helpers\tools.dart:74)
info: Name non-constant identifiers using lowerCamelCase. (non_constant_identifier_names at [label_storemax] lib\helpers\tools.dart:75)
info: Unused import: 'package:label_storemax/widgets/woosignal_ui.dart'. (unused_import at [label_storemax] lib\widgets\buttons.dart:13)
info: Unused import: 'package:label_storemax/main.dart'. (unused_import at [label_storemax] test\widget_test.dart:11)

Shipping is not supported for your country

Hello, this is a beautifully written application, both in the code structure and the accompanying UI and documentation. I have to applaud the amount of work and detail.

Can you please help me understand how to get past this screen. I've tried enabling and disabling shipping in my woosignal.com/dashboard for this store, and neither option seems to provide an answer. When I add a product to the cart and go through the necessary steps to checkout, I am forced to select a shipping option, which returns the error in the issue title "Shipping is not supported for your country". FYI, I've set all the .env variables according to the documentation.

The bool isShippingSupported for this check in CheckoutShippingTypePage is instantiated as true.

_getShippingMethods() ->wsShipping returns 1 list item at index [0] with the name "Locations not covered by your other zones"

I know that this check is returning true, and that's why I'm getting the message "Shipping is not supported for your country". I just can't figure out why yet.

if (_wsShippingOptions.isEmpty) {
    _isShippingSupported = false;
}

customerAddress, postalCode, and customerCountry in shipping.locations all have valid values in my debugger at this stage.

I just don't know how to configure this in WooSignal any differently than I've tried with the free options. Is this a paid feature? I mean, I'm sure I can hack the code and insert my own country code, etc. I just want to know what I'm doing wrong.

By the way, I've converted all this to null-safety for this project. Yeah, that was a big task. Thanks for any guidance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.