fix: Black bars on top of pages

This commit is contained in:
Inex Code 2024-07-24 14:43:19 +03:00
parent da073b7454
commit 39babdeeaa
2 changed files with 89 additions and 91 deletions

View file

@ -44,8 +44,7 @@ class _ConsolePageState extends State<ConsolePage> {
Widget build(final BuildContext context) { Widget build(final BuildContext context) {
final List<ConsoleLog> logs = console.logs; final List<ConsoleLog> logs = console.logs;
return SafeArea( return Scaffold(
child: Scaffold(
appBar: AppBar( appBar: AppBar(
title: Text('console_page.title'.tr()), title: Text('console_page.title'.tr()),
leading: IconButton( leading: IconButton(
@ -68,7 +67,6 @@ class _ConsolePageState extends State<ConsolePage> {
? const _ConsoleViewEmpty() ? const _ConsoleViewEmpty()
: _ConsoleViewLoaded(logs: logs), : _ConsoleViewLoaded(logs: logs),
), ),
),
); );
} }
} }

View file

@ -105,10 +105,10 @@ class _ServicesMigrationPageState extends State<ServicesMigrationPage> {
listItemHeight * widget.diskStatus.diskVolumes.length + listItemHeight * widget.diskStatus.diskVolumes.length +
headerVerticalPadding * widget.diskStatus.diskVolumes.length, headerVerticalPadding * widget.diskStatus.diskVolumes.length,
); );
return SafeArea( return Scaffold(
child: Scaffold(
appBar: PreferredSize( appBar: PreferredSize(
preferredSize: appBarHeight, preferredSize: appBarHeight,
child: SafeArea(
child: Column( child: Column(
children: [ children: [
BrandHeader( BrandHeader(
@ -143,6 +143,7 @@ class _ServicesMigrationPageState extends State<ServicesMigrationPage> {
], ],
), ),
), ),
),
body: ListView( body: ListView(
padding: const EdgeInsets.all(16.0), padding: const EdgeInsets.all(16.0),
children: <Widget>[ children: <Widget>[
@ -211,7 +212,6 @@ class _ServicesMigrationPageState extends State<ServicesMigrationPage> {
const SizedBox(height: 32), const SizedBox(height: 32),
], ],
), ),
),
); );
} }
} }