onSelected: (code) async { await SharedManager.prefs?.setString(AppStrings.localeKey, code); I18n.of(viewContext).locale = Locale(code); },
this is my code to set new language. using shared manager for return choosed language when app reopen. When select the language not change automatically the traslation. I need to reopen the app to see different traslation
onSelected: (code) async { await SharedManager.prefs?.setString(AppStrings.localeKey, code); I18n.of(viewContext).locale = Locale(code); },
this is my code to set new language. using shared manager for return choosed language when app reopen. When select the language not change automatically the traslation. I need to reopen the app to see different traslation