mirror of
https://gitlab.com/openlp/openlp-mobile-remote.git
synced 2024-12-22 20:02:53 +00:00
nullable locale verification for language selection
This commit is contained in:
parent
d02d3b240b
commit
33630a83ff
@ -41,6 +41,9 @@ void main() => runApp(
|
||||
GlobalWidgetsLocalizations.delegate,
|
||||
],
|
||||
localeResolutionCallback: (locale, supportedLocales) {
|
||||
if (locale == null) {
|
||||
return supportedLocales.first;
|
||||
}
|
||||
List<Locale> sameLanguageLocales = [];
|
||||
for (var supportedLocale in supportedLocales) {
|
||||
if (supportedLocale.languageCode == locale.languageCode) {
|
||||
|
Loading…
Reference in New Issue
Block a user