switch to long press for faster dialog

This commit is contained in:
Fabian Freund
2025-02-20 15:06:32 +01:00
parent 2ca027386d
commit a52cbbb225
2 changed files with 4 additions and 4 deletions
@@ -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(
@@ -61,7 +61,7 @@ class BrowserBottomAppBar extends HookConsumerWidget {
extra: tabState,
);
},
onDoubleTap: () async {
onLongPress: () async {
final newUrl = await showDialog<Uri?>(
context: context,
builder: