diff --git a/app/lib/features/search_browser/presentation/screens/browser.dart b/app/lib/features/search_browser/presentation/screens/browser.dart index c34fad4f..0f86dd71 100644 --- a/app/lib/features/search_browser/presentation/screens/browser.dart +++ b/app/lib/features/search_browser/presentation/screens/browser.dart @@ -391,6 +391,7 @@ class KagiScreen extends HookConsumerWidget { }, child: switch (displayedSheet) { ViewTabs() => DraggableScrollableSheet( + key: ObjectKey(displayedSheet), expand: false, minChildSize: 0.1, maxChildSize: _realtiveSafeArea(context), @@ -406,6 +407,7 @@ class KagiScreen extends HookConsumerWidget { }, ), final CreateTab parameter => DraggableScrollableSheet( + key: ObjectKey(displayedSheet), expand: false, initialChildSize: 0.8, minChildSize: 0.1, diff --git a/app/lib/features/web_view/presentation/widgets/web_view_tab.dart b/app/lib/features/web_view/presentation/widgets/web_view_tab.dart index c54a122d..ba7e8bfa 100644 --- a/app/lib/features/web_view/presentation/widgets/web_view_tab.dart +++ b/app/lib/features/web_view/presentation/widgets/web_view_tab.dart @@ -39,6 +39,7 @@ class WebViewTab extends HookConsumerWidget { onTap: () { if (!isActive) { ref.read(webViewTabControllerProvider.notifier).showTab(page.key); + onClose(); } else { onClose(); }