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 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(
|
||||||
|
|||||||
+1
-1
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user