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 working on Flutter beta chanel #13

Closed
karabanovbs opened this issue Feb 17, 2021 · 1 comment
Closed

Not working on Flutter beta chanel #13

karabanovbs opened this issue Feb 17, 2021 · 1 comment

Comments

@karabanovbs
Copy link

karabanovbs commented Feb 17, 2021

Error:

Launching lib/main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...
../../../../.pub-cache/hosted/pub.dartlang.org/readmore-1.0.1/lib/readmore.dart:82:58: Error: No named parameter with the name 'nullOk'.
        widget.locale ?? Localizations.localeOf(context, nullOk: true);
                                                         ^^^^^^
../../../sdk/flutter/packages/flutter/lib/src/widgets/localizations.dart:413:17: Context: Found this candidate, but the arguments don't match.
  static Locale localeOf(BuildContext context) {
                ^^^^^^^^
Failed to compile application.

Flutter localization API update commit

Now, should use maybeLocaleOf method, not localeOf, if u want to get locale safety.

@karabanovbs
Copy link
Author

related PR #15

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