opt gesture

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-29 16:14:34 +08:00
parent 19f7720fb2
commit be03909fdc
18 changed files with 43 additions and 61 deletions

View File

@@ -32,9 +32,7 @@ class SearchText extends StatelessWidget {
borderRadius: const BorderRadius.all(Radius.circular(6)),
child: InkWell(
onTap: () => onTap?.call(text),
onLongPress: hasLongPress && Utils.isMobile
? () => onLongPress!(text)
: null,
onLongPress: hasLongPress ? () => onLongPress!(text) : null,
onSecondaryTap: hasLongPress && !Utils.isMobile
? () => onLongPress!(text)
: null,