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

Use `AppLocalizations.localizationsDelegates` in other MaterialApp
This commit is contained in:
Vishnu Mohandas 2023-01-08 16:47:07 +05:30 committed by GitHub
commit 50b583c2d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
),
);