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.
This commit is contained in:
hunteraraujo
2023-09-04 16:19:06 -07:00
parent e1d45645ae
commit 994bdca948

View File

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