-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Locale null countryCode in flutter internationalization #16667
Comments
Locale constructor is: const Locale(this._languageCode, [ this._countryCode ]) : assert(_languageCode != null); If altering member |
I am facing below error in real device. don't know why.
|
@dooboolab do you mean the Python error? If so, I believe that should be fixed via #19281. It should make it to the next beta release. You can verify that on dev channel via If you mean the unhandled exception below that, it looks like the exception and any stack trace were truncated from your post. If you're still seeing this, would you mind opening a new bug with a verbose log ( |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
From @MarkBriggs2 on April 17, 2018 14:40
Question about #internationalization
Working through the tutorial at https://flutter.io/tutorials/internationalization/
Source at:
https://github.com/flutter/website/tree/master/_includes/code/internationalization/intl/
If supportedLocales parameter to
MaterialApp
constructor is as follows:this initially works. If country codes are omitted:
then the
countryCode
getter of the Locale object passed toDemoLocalizations.load()
orGlobalMaterializations._computeLocaleName(Locale locale)
(material_localizations.dart
line 134) will be null so any attempt to accesslocale.countryCode.isEmpty
will generate aNoSuchMethodError
.Is this as intended?
Thanks
Copied from original issue: flutter/flutter-intellij#2093
The text was updated successfully, but these errors were encountered: