Update to stores, VersionID 9.2

master
haroon amjad 3 months ago
parent f6df04c432
commit 1bb44039d6

@ -82,18 +82,22 @@ class MyApp extends StatelessWidget {
List<LocalizationsDelegate<dynamic>> delegates = context.localizationDelegates; List<LocalizationsDelegate<dynamic>> delegates = context.localizationDelegates;
// delegates.add(GlobalMaterialLocalizations.delegate); // delegates.add(GlobalMaterialLocalizations.delegate);
delegates.add(MonthYearPickerLocalizations.delegate); delegates.add(MonthYearPickerLocalizations.delegate);
return MaterialApp( return SafeArea(
navigatorKey: AppRoutes.navigatorKey, top: false,
builder: (BuildContext context, Widget? child) { bottom: Platform.isAndroid ? true : false,
return MediaQuery(data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0), child: child!); child: MaterialApp(
}, navigatorKey: AppRoutes.navigatorKey,
theme: AppTheme.getTheme(EasyLocalization.of(context)?.locale.languageCode == "ar"), builder: (BuildContext context, Widget? child) {
debugShowCheckedModeBanner: false, return MediaQuery(data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0), child: child!);
localizationsDelegates: delegates, },
supportedLocales: context.supportedLocales, theme: AppTheme.getTheme(EasyLocalization.of(context)?.locale.languageCode == "ar"),
locale: context.locale, debugShowCheckedModeBanner: false,
initialRoute: AppRoutes.initialRoute, localizationsDelegates: delegates,
routes: AppRoutes.routes, supportedLocales: context.supportedLocales,
locale: context.locale,
initialRoute: AppRoutes.initialRoute,
routes: AppRoutes.routes,
),
); );
}, },
); );

Loading…
Cancel
Save