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

@@ -44,7 +44,7 @@ class FavNoteItem extends StatelessWidget {
);
}
},
onLongPress: Utils.isMobile ? onLongPress : null,
onLongPress: onLongPress,
onSecondaryTap: Utils.isMobile ? null : onLongPress,
child: Padding(
padding: const EdgeInsets.symmetric(

View File

@@ -47,7 +47,7 @@ class FavPgcItem extends StatelessWidget {
}
PageUtils.viewPgc(seasonId: item.seasonId);
},
onLongPress: Utils.isMobile ? onLongPress : null,
onLongPress: onLongPress,
onSecondaryTap: Utils.isMobile ? null : onLongPress,
child: Padding(
padding: const EdgeInsets.symmetric(

View File

@@ -97,7 +97,7 @@ class _FavTopicPageState extends State<FavTopicPage>
'name': item.name!,
},
),
onLongPress: Utils.isMobile ? onLongPress : null,
onLongPress: onLongPress,
onSecondaryTap: Utils.isMobile ? null : onLongPress,
borderRadius: const BorderRadius.all(
Radius.circular(6),