From 55fd4092ac097af3a59b29ac2a76c193c9094319 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Fri, 21 Mar 2025 12:05:03 -0700 Subject: [PATCH] Prevent the Help buttons from being underneath the Nav Bar on Android. --- lib/pages/home.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/pages/home.dart b/lib/pages/home.dart index b5791e0..1b7a25d 100644 --- a/lib/pages/home.dart +++ b/lib/pages/home.dart @@ -136,7 +136,8 @@ class _HomePageState extends State { child: Center(child: page), ); - Widget? drawer, body; + Widget? drawer; + Widget body; if (Platform.isAndroid || Platform.isIOS) { drawer = navigation; body = main; @@ -156,8 +157,11 @@ class _HomePageState extends State { title: Text("Expense Tracker"), ), drawer: drawer, - body: body, + body: SafeArea(child: body), floatingActionButton: floatingButton, + extendBody: false, + extendBodyBehindAppBar: false, + resizeToAvoidBottomInset: true, ); }); }