Skip to content

Commit 2dbb585

Browse files
committed
Fix breakage on non-en locales
See flutter/flutter#191072
1 parent e1af2a1 commit 2dbb585

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎lib/main.dart‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,15 @@ class _MyApp extends StatelessWidget {
9393
return MaterialApp(
9494
navigatorKey: navigatorKey,
9595
restorationScopeId: 'orgro_root',
96-
localizationsDelegates: AppLocalizations.localizationsDelegates,
96+
// Work around https://github.com/flutter/flutter/issues/191072 by
97+
// avoiding using AppLocalizations.localizationDelegates and specifying
98+
// the delegates manually
99+
//
100+
// TODO(aaron): Remove pending upstream fix
101+
localizationsDelegates: [
102+
AppLocalizations.delegate,
103+
...GlobalMaterialLocalizations.delegates,
104+
],
97105
supportedLocales: AppLocalizations.supportedLocales,
98106
debugShowCheckedModeBanner: !kScreenshotMode,
99107
onGenerateTitle: (context) => AppLocalizations.of(context)!.appTitle,

0 commit comments

Comments
 (0)