From faf3a677d4350b37ad9cf52c5d0a14b1434b4cf9 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Thu, 20 Nov 2025 00:21:21 +0800 Subject: [PATCH] :rewind: Rewind AI slop --- lib/widgets/app_scaffold.dart | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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,