You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The app crashes with following error. I used string.cs_CZ.i18n.json file and also LocaleSettings.setLocaleRaw("cs_CZ");
I/flutter ( 5843): ════════
I/flutter ( 5843): Warning: This application's locale, cs_CZ, is not supported by all of its
I/flutter ( 5843): localization delegates.
I/flutter ( 5843): > A MaterialLocalizations delegate that supports the cs_CZ locale was not found.
I/flutter ( 5843): See https://flutter.dev/tutorials/internationalization/ for more
I/flutter ( 5843): information about configuring an app's locale, supportedLocales,
I/flutter ( 5843): and localizationsDelegates parameters.
I/flutter ( 5843): ════════
I/flutter ( 5843):
======== Exception caught by widgets library =======================================================
The following assertion was thrown building AppBar(dirty, dependencies: [_LocalizationsScope-[GlobalKey#0dcea]], state: _AppBarState#471e0):
No MaterialLocalizations found.
AppBar widgets require MaterialLocalizations to be provided by a Localizations widget ancestor.
The material library uses Localizations to generate messages, labels, and abbreviations.
To introduce a MaterialLocalizations, either use a MaterialApp at the root of your application to include them automatically, or add a Localization widget with a MaterialLocalizations delegate.
The specific widget that could not find a MaterialLocalizations ancestor was: AppBar
dirty
dependencies: [_LocalizationsScope-[GlobalKey#0dcea]]
state: _AppBarState#471e0
The ancestors of this widget were:
: Scaffold
dependencies: [_InheritedTheme, MediaQuery, _EffectiveTickerMode, _LocalizationsScope-[GlobalKey#0dcea], Directionality, UnmanagedRestorationScope, _ScaffoldMessengerScope]
state: ScaffoldState#1a26c(tickers: tracking 2 tickers)
: MyHomePage
dependencies: [MediaQuery]
state: _MyHomePageState#24804
: MaterialApp
state: _MaterialAppState#c0250
: MyApp
: _InheritedLocaleData
: TranslationProvider-[LabeledGlobalKey<_TranslationProviderState>#7e437]
state: _TranslationProviderState#794d5
...
The relevant error-causing widget was:
The text was updated successfully, but these errors were encountered:
The app crashes with following error. I used
string.cs_CZ.i18n.json
file and alsoLocaleSettings.setLocaleRaw("cs_CZ");
The text was updated successfully, but these errors were encountered: