From 2d154d646d84d0e9102ced428bf162e7f839929f Mon Sep 17 00:00:00 2001 From: orz12 Date: Fri, 15 Mar 2024 20:45:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E6=89=A9=E5=B1=95?= =?UTF-8?q?=E5=90=8D=EF=BC=8C=E4=BF=AE=E6=94=B9=E5=AD=98=E5=82=A8=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/utils/download.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/utils/download.dart b/lib/utils/download.dart index ab105f14..38657fe5 100644 --- a/lib/utils/download.dart +++ b/lib/utils/download.dart @@ -23,13 +23,14 @@ class DownloadUtils { var response = await Dio() .get(imgUrl, options: Options(responseType: ResponseType.bytes)); String picName = - "plpl_${imgType}_${DateTime.now().toString().split('-').join()}"; + "PiliPalaX_${imgType}_${DateTime.now().toString().split('-').join()}"; final SaveResult result = await SaverGallery.saveImage( Uint8List.fromList(response.data), quality: 100, name: picName, - // 保存到 PiliPala文件夹 - androidRelativePath: "Pictures/PiliPala", + fileExtension: 'jpg', + // 保存到 PiliPalaX文件夹 + androidRelativePath: "Pictures/PiliPalaX", androidExistNotSave: false, ); SmartDialog.dismiss();