Prevent the Help buttons from being underneath the Nav Bar on Android.

This commit is contained in:
Hyperling 2025-03-21 12:05:03 -07:00
parent 247b88daa2
commit 55fd4092ac

View File

@ -136,7 +136,8 @@ class _HomePageState extends State<HomePage> {
child: Center(child: page), child: Center(child: page),
); );
Widget? drawer, body; Widget? drawer;
Widget body;
if (Platform.isAndroid || Platform.isIOS) { if (Platform.isAndroid || Platform.isIOS) {
drawer = navigation; drawer = navigation;
body = main; body = main;
@ -156,8 +157,11 @@ class _HomePageState extends State<HomePage> {
title: Text("Expense Tracker"), title: Text("Expense Tracker"),
), ),
drawer: drawer, drawer: drawer,
body: body, body: SafeArea(child: body),
floatingActionButton: floatingButton, floatingActionButton: floatingButton,
extendBody: false,
extendBodyBehindAppBar: false,
resizeToAvoidBottomInset: true,
); );
}); });
} }