Bottom safe area for android

lab_result
haroon amjad 2 months ago committed by taha.alam
parent a13c2e6c31
commit 8348557254

@ -178,41 +178,45 @@ class _MyApp extends State<MyApp> {
ChangeNotifierProvider<PayfortViewModel>(create: (context) => PayfortViewModel()), ChangeNotifierProvider<PayfortViewModel>(create: (context) => PayfortViewModel()),
], ],
child: Consumer<ProjectViewModel>( child: Consumer<ProjectViewModel>(
builder: (context, projectProvider, child) => MaterialApp( builder: (context, projectProvider, child) => SafeArea(
builder: (context, mchild) { top: false, // Set to true if you want to avoid the notch area as well
AppGlobal.projectViewModelContext = context; bottom: Platform.isIOS ? false : true,
return MediaQuery( child: MaterialApp(
data: MediaQuery.of(context).copyWith( builder: (context, mchild) {
textScaler: TextScaler.linear(1.0), AppGlobal.projectViewModelContext = context;
), //set desired text scale factor here return MediaQuery(
child: mchild!); data: MediaQuery.of(context).copyWith(
// Container( textScaler: TextScaler.linear(1.0),
// color: Colors.blue, ), //set desired text scale factor here
// )); child: mchild!);
}, // Container(
navigatorKey: locator<NavigationService>().navigatorKey, // color: Colors.blue,
showSemanticsDebugger: false, // ));
title: 'Dr. AlHabib', },
locale: projectProvider.appLocal, navigatorKey: locator<NavigationService>().navigatorKey,
localizationsDelegates: [ showSemanticsDebugger: false,
TranslationBaseDelegate(), title: 'Dr. AlHabib',
GlobalMaterialLocalizations.delegate, locale: projectProvider.appLocal,
GlobalWidgetsLocalizations.delegate, localizationsDelegates: [
GlobalCupertinoLocalizations.delegate, TranslationBaseDelegate(),
], GlobalMaterialLocalizations.delegate,
supportedLocales: [ GlobalWidgetsLocalizations.delegate,
const Locale('ar', ''), // Arabic GlobalCupertinoLocalizations.delegate,
const Locale('en', ''), // English ],
], supportedLocales: [
const Locale('ar', ''), // Arabic
theme: Provider.of<ThemeNotifier>(context).getTheme(), const Locale('en', ''), // English
initialRoute: SPLASH, ],
// initialRoute: CALL_PAGE,
// initialRoute: OPENTOK_CALL_PAGE, theme: Provider.of<ThemeNotifier>(context).getTheme(),
// initialRoute: PACKAGES_OFFERS, initialRoute: SPLASH,
// initialRoute: PACKAGES_ORDER_COMPLETED, // initialRoute: CALL_PAGE,
routes: routes, // initialRoute: OPENTOK_CALL_PAGE,
debugShowCheckedModeBanner: false, // initialRoute: PACKAGES_OFFERS,
// initialRoute: PACKAGES_ORDER_COMPLETED,
routes: routes,
debugShowCheckedModeBanner: false,
),
), ),
), ),
); );

Loading…
Cancel
Save