Closed mohafouad closed 4 years ago
i saved current lang in SharedPreferences key when app start i get this key and want to set this as my current local
i tray with main method
String currentLang=await AppUtil.currentLang(); var delegate = await LocalizationDelegate.create( fallbackLocale:currentLang !=null && currentLang != "" ? currentLang : 'en_US', supportedLocales: ['en_US', 'ar']);
but not work as expected
This is not the correct way to do this. Please see saving/restoring the selected locale for an example.
The fallbackLocale is only used for fallback, not for actually changing the locale.
fallbackLocale
i saved current lang in SharedPreferences key when app start i get this key and want to set this as my current local
i tray with main method
but not work as expected