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
MaterialApp(
debugShowCheckedModeBanner:false,
locale: ui.window.locale, // it is equal to String("fr")
localizationsDelegates: [
S.delegate,
],
localeResolutionCallback:S.delegate.resolution(fallback:constLocale('en', '')),
supportedLocales:S.delegate.supportedLocales,
);
localeResolutionCallback is, as I understand, a callback when no local is found.
The problem is the following : localeResolutionCallback is always call and override locale: ui.window.locale...
Can you help me ?
The text was updated successfully, but these errors were encountered:
EArminjon
changed the title
Flutter_i18n didn't take phone locale as default
localeResolutionCallback override MaterialApp Local
Nov 7, 2019
EArminjon
changed the title
localeResolutionCallback override MaterialApp Local
localeResolutionCallback override MaterialApp Locale
Nov 7, 2019
Anyways, I keep getting The getter 'MY_ARB_KEY' was called on null. Receiver: null. Tried calling: MY_ARB_KEY
frequently, turning the entire plugin is pointless.
Nevermind, translating still sporadically does not work. Also, sometimes the mentioned "called on null" error occurs. I can just suggest everyone to never use this plugin. It is still recommended in some blog posts, but we should make people aware of the issues by leaving 1-star reviews on IntelliJ to make the issues more obvious. It is quite a big waste of time to try using this plugin and will save everyone a headache.
Hello,
I'm facing an issue with the code below :
localeResolutionCallback is, as I understand, a callback when no local is found.
The problem is the following : localeResolutionCallback is always call and override locale: ui.window.locale...
Can you help me ?
The text was updated successfully, but these errors were encountered: