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

Not compiling for Web or Android due to Localization problem with flutter_svg #63

Closed
stemabo opened this issue Feb 13, 2021 · 1 comment

Comments

@stemabo
Copy link

stemabo commented Feb 13, 2021

I've just forked the repo but when trying to build for either Web or Android running in the below errors:

Building without sound null safety
For more information see https://dart.dev/null-safety/unsound-null-safety

Target dart2js failed: Exception: ../../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.19.2+1/lib/src/picture_provider.dart:57:59:
Error: No named parameter with the name 'nullOk'.
        context != null ? Localizations.localeOf(context, nullOk: true) : null,
                                                          ^^^^^^
../../../snap/flutter/common/flutter/packages/flutter/lib/src/widgets/localizations.dart:413:17:
Info: Found this candidate, but the arguments don't match.
  static Locale localeOf(BuildContext context) {
                ^^^^^^^^
Error: Compilation failed.

Compiling lib/main.dart for the Web... 13.4s
Exception: Failed to compile application for the Web.

@stemabo stemabo changed the title Not compiling for Web or Android due to Localization problem Not compiling for Web or Android due to Localization problem with flutter_svg Feb 15, 2021
@bizz84
Copy link
Owner

bizz84 commented Jan 7, 2023

Closing following changes in #94.

Feel free to open new issues if needed.

@bizz84 bizz84 closed this as completed Jan 7, 2023
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