switch to long press for faster dialog
This commit is contained in:
+3
-3
@@ -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(
|
||||
|
||||
+1
-1
@@ -61,7 +61,7 @@ class BrowserBottomAppBar extends HookConsumerWidget {
|
||||
extra: tabState,
|
||||
);
|
||||
},
|
||||
onDoubleTap: () async {
|
||||
onLongPress: () async {
|
||||
final newUrl = await showDialog<Uri?>(
|
||||
context: context,
|
||||
builder:
|
||||
|
||||
Reference in New Issue
Block a user