mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-09 15:17:59 -05:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user