From 1a10f6ebae26536c1f805dd5afdb5cd3faf1c263 Mon Sep 17 00:00:00 2001 From: Juan Gilsanz Polo Date: Thu, 29 Feb 2024 12:44:13 +0100 Subject: [PATCH] Removed webview global key --- lib/constants/global_keys.dart | 1 - lib/screens/webview/ui/webview.dart | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/constants/global_keys.dart b/lib/constants/global_keys.dart index 89d2c72..5b5dcc4 100644 --- a/lib/constants/global_keys.dart +++ b/lib/constants/global_keys.dart @@ -8,5 +8,4 @@ class ScaffoldMessengerKeys { static final tags = GlobalKey(); static final addBookmark = GlobalKey(); static final filteredBookmarks = GlobalKey(); - static final webview = GlobalKey(); } diff --git a/lib/screens/webview/ui/webview.dart b/lib/screens/webview/ui/webview.dart index 4e06c41..35c7116 100644 --- a/lib/screens/webview/ui/webview.dart +++ b/lib/screens/webview/ui/webview.dart @@ -111,7 +111,7 @@ class WebViewScreen extends HookConsumerWidget { ), PopupMenuItem( onTap: () => copyToClipboard( - key: ScaffoldMessengerKeys.webview, + key: ScaffoldMessengerKeys.root, value: bookmark.url!, successMessage: t.webview.linkCopiedClipboard, ),