fix: 默认jpe替换为jpg

This commit is contained in:
orz12
2024-03-22 00:30:23 +08:00
parent 9e57805ab6
commit 71757ada97
3 changed files with 10 additions and 6 deletions

View File

@@ -23,7 +23,7 @@ class DownloadUtils {
var response = await Dio()
.get(imgUrl, options: Options(responseType: ResponseType.bytes));
String picName =
"PiliPalaX_${imgType}_${DateTime.now().toString().split('-').join()}";
"${imgType}_${DateTime.now().toString().replaceAll(' ', '_').replaceAll(':', '-').split('.').first}";
final SaveResult result = await SaverGallery.saveImage(
Uint8List.fromList(response.data),
quality: 100,

View File

@@ -935,12 +935,13 @@ packages:
source: hosted
version: "1.10.0"
mime:
dependency: transitive
dependency: "direct overridden"
description:
name: mime
sha256: "2e123074287cc9fd6c09de8336dae606d1ddb88d9ac47358826db698c176a1f2"
url: "https://mirrors.tuna.tsinghua.edu.cn/dart-pub/"
source: hosted
path: "."
ref: HEAD
resolved-ref: "922e1f3d0b68291c42a2ec3a83542a886ea9b041"
url: "https://github.com/orz12/mime/"
source: git
version: "1.0.5"
nil:
dependency: "direct main"

View File

@@ -141,6 +141,9 @@ dependencies:
#瀑布流
waterfall_flow: ^3.0.3
marquee: ^2.2.3
dependency_overrides:
mime:
git: https://github.com/orz12/mime/
dev_dependencies:
flutter_test: