It seems GlobalMaterialLocalizations.delegate
does not support the zh
Locale (Chinese).
Is it really necessary adding GlobalCupertinoLocalizations.delegate
before other locales works?
I get this error each time I run the app without adding the GlobalCupertinoLocalizations delegate:
Could this be a bug in Flutter? because according to the official Docs HERE the GlobalMaterialLocalizations.delegate
does have support for zh - Chinese
The full source code is available HERE
Adding the next delegate solves the problem:
Source: Flutter app crashes building the AppBar with multi language using i18n Jetbrains plugin's boilerplate