From a52cbbb22598127a741f4c67ab80f8f6d822d8ee Mon Sep 17 00:00:00 2001 From: Fabian Freund Date: Thu, 20 Feb 2025 15:06:32 +0100 Subject: [PATCH] switch to long press for faster dialog --- .../presentation/widgets/browser_modules/app_bar_title.dart | 6 +++--- .../widgets/browser_modules/bottom_app_bar.dart | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/lib/features/geckoview/features/browser/presentation/widgets/browser_modules/app_bar_title.dart b/app/lib/features/geckoview/features/browser/presentation/widgets/browser_modules/app_bar_title.dart index 604c64a2..4d40cad4 100644 --- a/app/lib/features/geckoview/features/browser/presentation/widgets/browser_modules/app_bar_title.dart +++ b/app/lib/features/geckoview/features/browser/presentation/widgets/browser_modules/app_bar_title.dart @@ -8,12 +8,12 @@ class AppBarTitle extends StatelessWidget { final TabState tab; final void Function()? onTap; - final void Function()? onDoubleTap; + final void Function()? onLongPress; const AppBarTitle({ required this.tab, this.onTap, - this.onDoubleTap, + this.onLongPress, super.key, }); @@ -42,7 +42,7 @@ class AppBarTitle extends StatelessWidget { final theme = Theme.of(context); return GestureDetector( onTap: onTap, - onDoubleTap: onDoubleTap, + onLongPress: onLongPress, child: Row( children: [ Skeletonizer( diff --git a/app/lib/features/geckoview/features/browser/presentation/widgets/browser_modules/bottom_app_bar.dart b/app/lib/features/geckoview/features/browser/presentation/widgets/browser_modules/bottom_app_bar.dart index dd40b483..1663ad02 100644 --- a/app/lib/features/geckoview/features/browser/presentation/widgets/browser_modules/bottom_app_bar.dart +++ b/app/lib/features/geckoview/features/browser/presentation/widgets/browser_modules/bottom_app_bar.dart @@ -61,7 +61,7 @@ class BrowserBottomAppBar extends HookConsumerWidget { extra: tabState, ); }, - onDoubleTap: () async { + onLongPress: () async { final newUrl = await showDialog( context: context, builder: