Ver código fonte

Use `AppLocalizations.localizationsDelegates` in other MaterialApp

Smoke tested by running the app on iOS simulator
Manav 2 anos atrás
pai
commit
4fa61f0997
1 arquivos alterados com 1 adições e 6 exclusões
  1. 1 6
      lib/app/view/app.dart

+ 1 - 6
lib/app/view/app.dart

@@ -79,12 +79,7 @@ class _AppState extends State<App> {
           darkTheme: dartTheme,
           debugShowCheckedModeBanner: false,
           supportedLocales: AppLocalizations.supportedLocales,
-          localizationsDelegates: const [
-            AppLocalizations.delegate,
-            GlobalMaterialLocalizations.delegate,
-            GlobalCupertinoLocalizations.delegate,
-            GlobalWidgetsLocalizations.delegate,
-          ],
+          localizationsDelegates: AppLocalizations.localizationsDelegates,
           routes: _getRoutes,
         ),
       );