From d7225335bce63cd765c52cee5ea47e1187e4338e Mon Sep 17 00:00:00 2001 From: Fabian Freund Date: Thu, 29 Jan 2026 20:23:39 +0100 Subject: [PATCH] cleanup code --- .../features/browser/presentation/screens/browser.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/lib/features/geckoview/features/browser/presentation/screens/browser.dart b/app/lib/features/geckoview/features/browser/presentation/screens/browser.dart index 5093cf79..7238ae1b 100644 --- a/app/lib/features/geckoview/features/browser/presentation/screens/browser.dart +++ b/app/lib/features/geckoview/features/browser/presentation/screens/browser.dart @@ -564,8 +564,6 @@ class _SheetContainer extends HookConsumerWidget { @override Widget build(BuildContext context, WidgetRef ref) { final colorScheme = Theme.of(context).colorScheme; - // Memoize maxChildSize to prevent keyboard from affecting sheet size - final stableMaxChildSize = useMemoized(() => relativeSafeArea, []); bool dismissOnThreshold(DraggableScrollableNotification notification) { if (notification.extent <= 0.1) { @@ -591,14 +589,14 @@ class _SheetContainer extends HookConsumerWidget { ViewTabsSheet() => NotificationListener( onNotification: dismissOnThreshold, - child: _ViewTabsSheet(maxChildSize: stableMaxChildSize), + child: _ViewTabsSheet(maxChildSize: relativeSafeArea), ), final SiteSettingsSheet parameter => NotificationListener( onNotification: dismissOnThreshold, child: _SiteSettingsSheet( initialTabState: parameter.tabState, - maxChildSize: stableMaxChildSize, + maxChildSize: relativeSafeArea, bottomAppBarHeight: bottomAppBarHeight, ), ),