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

@@ -26,6 +26,10 @@ class SubItem extends StatelessWidget {
21 => '合集',
_ => '其它(${item.type})',
};
void onLongPress() => imageSaveDialog(
title: item.title,
cover: item.cover,
);
return Material(
type: MaterialType.transparency,
child: InkWell(
@@ -50,10 +54,8 @@ class SubItem extends StatelessWidget {
);
}
},
onLongPress: () => imageSaveDialog(
title: item.title,
cover: item.cover,
),
onLongPress: onLongPress,
onSecondaryTap: Utils.isMobile ? null : onLongPress,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 5),
child: Row(