Bottom safe area for android

update-to-3.32-sdk
haroon amjad 5 months ago
parent 6b70461e27
commit d42b7108a3

@ -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