From 8a9a16b288f0d0588901d89f7b89d1ff2de72e6b Mon Sep 17 00:00:00 2001 From: orz12 Date: Fri, 1 Mar 2024 22:47:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=89=8B=E5=8A=A8=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E8=B4=A8=E9=87=8F=E6=8F=90=E5=8D=87=E4=B8=BA?= =?UTF-8?q?100%=EF=BC=8C=E6=96=B0=E5=A2=9E=E9=94=99=E8=AF=AF=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/utils/download.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/utils/download.dart b/lib/utils/download.dart index ad008f6d..ab105f14 100644 --- a/lib/utils/download.dart +++ b/lib/utils/download.dart @@ -26,7 +26,7 @@ class DownloadUtils { "plpl_${imgType}_${DateTime.now().toString().split('-').join()}"; final SaveResult result = await SaverGallery.saveImage( Uint8List.fromList(response.data), - quality: 60, + quality: 100, name: picName, // 保存到 PiliPala文件夹 androidRelativePath: "Pictures/PiliPala", @@ -35,6 +35,8 @@ class DownloadUtils { SmartDialog.dismiss(); if (result.isSuccess) { await SmartDialog.showToast('「$picName」已保存 '); + } else { + await SmartDialog.showToast('保存失败,${result.errorMessage}'); } return true; } catch (err) {