feat: save all pics

This commit is contained in:
bggRGjQaUbCoE
2024-10-13 09:37:59 +08:00
parent ae0d012c0f
commit 2f456da1c5
3 changed files with 69 additions and 33 deletions

View File

@@ -94,11 +94,25 @@ class _ImagePreviewState extends State<ImagePreview>
onTap: () {
Get.back();
DownloadUtils.downloadImg(
context, _previewController.currentImgUrl);
context,
[_previewController.currentImgUrl],
);
},
dense: true,
title: const Text('保存到手机', style: TextStyle(fontSize: 14)),
),
if (imgList!.length > 1)
ListTile(
onTap: () {
Get.back();
DownloadUtils.downloadImg(
context,
imgList!,
);
},
dense: true,
title: const Text('保存全部到手机', style: TextStyle(fontSize: 14)),
),
],
),
);