Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facing compilation errors building for Android #13

Closed
anthonyraj opened this issue Mar 4, 2021 · 3 comments
Closed

Facing compilation errors building for Android #13

anthonyraj opened this issue Mar 4, 2021 · 3 comments

Comments

@anthonyraj
Copy link

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

@agordn52
Copy link
Contributor

agordn52 commented Mar 5, 2021

Yeah, we've noticed this since the latest Flutter (v2.0.0) release.
We're working on a patch, should be available soon.

@agordn52
Copy link
Contributor

agordn52 commented Mar 8, 2021

@anthonyraj, we've released a new version (v3.0.0) that fixes the errors using Flutter 2.0.0+
Here's a link here - https://github.com/woosignal/flutter-woocommerce-app/releases/tag/v3.0.0

@anthonyraj
Copy link
Author

Thank you @agordn52 for the quick fix! I'll take a look at the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants