diff --git a/lib/main.dart b/lib/main.dart index 4ee3b3e..18433dc 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -41,6 +41,9 @@ void main() => runApp( GlobalWidgetsLocalizations.delegate, ], localeResolutionCallback: (locale, supportedLocales) { + if (locale == null) { + return supportedLocales.first; + } List sameLanguageLocales = []; for (var supportedLocale in supportedLocales) { if (supportedLocale.languageCode == locale.languageCode) {