Fix language resolution
This commit is contained in:
parent
00ff16a5ae
commit
672444e723
2 changed files with 1 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
|||
arb-dir: lib/l10n
|
||||
template-arb-file: app_en.arb
|
||||
output-localization-file: app_localizations.dart
|
||||
preferred-supported-locales: [en]
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@ class _MainAppState extends State<MainApp> {
|
|||
return MaterialApp(
|
||||
localizationsDelegates: AppLocalizations.localizationsDelegates,
|
||||
supportedLocales: AppLocalizations.supportedLocales,
|
||||
localeResolutionCallback: (locale, supported) => supported.firstWhere((l) => l.languageCode == 'en'),
|
||||
theme: ThemeData(
|
||||
colorScheme: ColorScheme.fromSeed(
|
||||
seedColor: Colors.green,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue