Use AppLocalizations.localizationsDelegates in other MaterialApp

Smoke tested by running the app on iOS simulator
This commit is contained in:
Manav 2023-01-08 16:26:36 +05:30
parent 29bc7bb78f
commit 4fa61f0997

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