opt gesture

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-07 13:52:06 +08:00
parent 2bfa1bb6c2
commit 904756b6ea
38 changed files with 449 additions and 304 deletions

View File

@@ -13,6 +13,10 @@ class MemberFavItem extends StatelessWidget {
@override
Widget build(BuildContext context) {
void onLongPress() => imageSaveDialog(
title: item.title,
cover: item.cover,
);
return Material(
type: MaterialType.transparency,
child: InkWell(
@@ -25,10 +29,8 @@ class MemberFavItem extends StatelessWidget {
},
);
},
onLongPress: () => imageSaveDialog(
title: item.title,
cover: item.cover,
),
onLongPress: onLongPress,
onSecondaryTap: Utils.isMobile ? null : onLongPress,
child: Padding(
padding: const EdgeInsets.symmetric(
horizontal: StyleString.safeSpace,