Explorar o código

Merge pull request #30 from ente-io/use-newer-alternative

Use `AppLocalizations.localizationsDelegates` in other MaterialApp
Vishnu Mohandas %!s(int64=2) %!d(string=hai) anos
pai
achega
50b583c2d7
Modificáronse 1 ficheiros con 1 adicións e 6 borrados
  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,
         ),
       );