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
_AssertionError ('dart:ui/window.dart': Failed assertion: line 281: '<optimized out>': is not true.) #31
Comments
I am experiencing the same problem, but my device language is correct. E/flutter ( 5394): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: 'dart:ui/window.dart': Failed assertion: line 281: '': is not true. |
This problem have something to do with SharedPreferences plug-in. I updated it to the version ^0.5.4+5 and removed the line below from my main.dart file. This solved the problem above. SharedPreferences.setMockInitialValues({}); |
Same error with Flutter 1.9.1+hotfix.6. Updating SharedPreferences not fixed this. |
Same error on Flutter Channel master, v1.12.3-pre.10 |
Any updates here? Guys, who faced same problem, can I send my app to prod with this error? |
|| allowed _codeLang to be null and _codeCoun was set to some value.. Replace || with && and i added extra measure _codeLang != '' to fullfill assert in Locale constructor... |
|
Glad to hear about that! Hope the package at pub.dev be updated soon. |
@pulstar it's ready |
I updated here, but it could not find the EasylocaLizationDelegate... I figured out the problem and is the class name, that changed from "EasylocaLizationDelegate" to "EasyLocalizationDelegate"... (notice the uppercase L position). Everything is fine now. |
Getting this error when phone language is something else except the one defined by us in app.
steps to recreate error :
change phone language to something else than what is defined
Example : defined languages en-US,ar-DZ then set language to French in particular
install app
The text was updated successfully, but these errors were encountered: