Bottom safe area for android

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

@ -178,7 +178,10 @@ class _MyApp extends State<MyApp> {
ChangeNotifierProvider<PayfortViewModel>(create: (context) => PayfortViewModel()),
],
child: Consumer<ProjectViewModel>(
builder: (context, projectProvider, child) => MaterialApp(
builder: (context, projectProvider, child) => SafeArea(
top: false, // Set to true if you want to avoid the notch area as well
bottom: Platform.isIOS ? false : true,
child: MaterialApp(
builder: (context, mchild) {
AppGlobal.projectViewModelContext = context;
return MediaQuery(
@ -215,6 +218,7 @@ class _MyApp extends State<MyApp> {
debugShowCheckedModeBanner: false,
),
),
),
);
},
);

Loading…
Cancel
Save