mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: 默认jpe替换为jpg
This commit is contained in:
@@ -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,
|
||||
|
||||
11
pubspec.lock
11
pubspec.lock
@@ -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"
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user