From 994bdca94883b0470c9850c838acda07183a36c7 Mon Sep 17 00:00:00 2001 From: hunteraraujo Date: Mon, 4 Sep 2023 16:19:06 -0700 Subject: [PATCH] Prevent TaskView and ChatView from Being Obscured by CupertinoTabView This commit wraps the TaskView and ChatView in a SafeArea widget to ensure that they are not hidden behind the CupertinoTabView. This addresses the issue where parts of these views were obscured, particularly when using the app on smaller screens. - Wrapped TaskView in SafeArea - Wrapped ChatView in SafeArea This change improves the user experience by ensuring that all content is visible and accessible. --- frontend/lib/views/main_layout.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/lib/views/main_layout.dart b/frontend/lib/views/main_layout.dart index 79106105..e5bbb153 100644 --- a/frontend/lib/views/main_layout.dart +++ b/frontend/lib/views/main_layout.dart @@ -53,14 +53,14 @@ class MainLayout extends StatelessWidget { case 0: returnValue = CupertinoTabView(builder: (context) { return CupertinoPageScaffold( - child: TaskView(viewModel: taskViewModel), + child: SafeArea(child: TaskView(viewModel: taskViewModel)), ); }); break; case 1: returnValue = CupertinoTabView(builder: (context) { return CupertinoPageScaffold( - child: ChatView(viewModel: chatViewModel), + child: SafeArea(child: ChatView(viewModel: chatViewModel)), ); }); break;