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 TabState tab;
final void Function()? onTap; final void Function()? onTap;
final void Function()? onDoubleTap; final void Function()? onLongPress;
const AppBarTitle({ const AppBarTitle({
required this.tab, required this.tab,
this.onTap, this.onTap,
this.onDoubleTap, this.onLongPress,
super.key, super.key,
}); });
@@ -42,7 +42,7 @@ class AppBarTitle extends StatelessWidget {
final theme = Theme.of(context); final theme = Theme.of(context);
return GestureDetector( return GestureDetector(
onTap: onTap, onTap: onTap,
onDoubleTap: onDoubleTap, onLongPress: onLongPress,
child: Row( child: Row(
children: [ children: [
Skeletonizer( Skeletonizer(
@@ -61,7 +61,7 @@ class BrowserBottomAppBar extends HookConsumerWidget {
extra: tabState, extra: tabState,
); );
}, },
onDoubleTap: () async { onLongPress: () async {
final newUrl = await showDialog<Uri?>( final newUrl = await showDialog<Uri?>(
context: context, context: context,
builder: builder: