diff --git a/lib/widgets/app_scaffold.dart b/lib/widgets/app_scaffold.dart index ec72d610..b8576ca1 100644 --- a/lib/widgets/app_scaffold.dart +++ b/lib/widgets/app_scaffold.dart @@ -314,6 +314,9 @@ class AppScaffold extends HookConsumerWidget { return null; }, []); + final appBarHeight = appBar?.preferredSize.height ?? 0; + final safeTop = MediaQuery.of(context).padding.top; + final noBackground = isNoBackground ?? isWideScreen(context); final builtWidget = Focus( @@ -322,7 +325,16 @@ class AppScaffold extends HookConsumerWidget { extendBody: extendBody ?? true, extendBodyBehindAppBar: true, backgroundColor: Colors.transparent, - body: body, + body: Column( + children: [ + IgnorePointer( + child: SizedBox( + height: appBar != null ? appBarHeight + safeTop : 0, + ), + ), + if (body != null) Expanded(child: body!), + ], + ), appBar: appBar, bottomNavigationBar: bottomNavigationBar, bottomSheet: bottomSheet,