浏览代码

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

Use `AppLocalizations.localizationsDelegates` in other MaterialApp
Vishnu Mohandas 2 年之前
父节点
当前提交
50b583c2d7
共有 1 个文件被更改,包括 1 次插入6 次删除
  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,
         ),
       );