From 1bb44039d623ac79ccacbebbb3e15e53945aa3e8 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Thu, 31 Jul 2025 12:25:48 +0300 Subject: [PATCH] Update to stores, VersionID 9.2 --- lib/main.dart | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 39f19e5..a43250e 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -82,18 +82,22 @@ class MyApp extends StatelessWidget { List> delegates = context.localizationDelegates; // delegates.add(GlobalMaterialLocalizations.delegate); delegates.add(MonthYearPickerLocalizations.delegate); - return MaterialApp( - navigatorKey: AppRoutes.navigatorKey, - builder: (BuildContext context, Widget? child) { - return MediaQuery(data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0), child: child!); - }, - theme: AppTheme.getTheme(EasyLocalization.of(context)?.locale.languageCode == "ar"), - debugShowCheckedModeBanner: false, - localizationsDelegates: delegates, - supportedLocales: context.supportedLocales, - locale: context.locale, - initialRoute: AppRoutes.initialRoute, - routes: AppRoutes.routes, + return SafeArea( + top: false, + bottom: Platform.isAndroid ? true : false, + child: MaterialApp( + navigatorKey: AppRoutes.navigatorKey, + builder: (BuildContext context, Widget? child) { + return MediaQuery(data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0), child: child!); + }, + theme: AppTheme.getTheme(EasyLocalization.of(context)?.locale.languageCode == "ar"), + debugShowCheckedModeBanner: false, + localizationsDelegates: delegates, + supportedLocales: context.supportedLocales, + locale: context.locale, + initialRoute: AppRoutes.initialRoute, + routes: AppRoutes.routes, + ), ); }, );