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()
|
var response = await Dio()
|
||||||
.get(imgUrl, options: Options(responseType: ResponseType.bytes));
|
.get(imgUrl, options: Options(responseType: ResponseType.bytes));
|
||||||
String picName =
|
String picName =
|
||||||
"PiliPalaX_${imgType}_${DateTime.now().toString().split('-').join()}";
|
"${imgType}_${DateTime.now().toString().replaceAll(' ', '_').replaceAll(':', '-').split('.').first}";
|
||||||
final SaveResult result = await SaverGallery.saveImage(
|
final SaveResult result = await SaverGallery.saveImage(
|
||||||
Uint8List.fromList(response.data),
|
Uint8List.fromList(response.data),
|
||||||
quality: 100,
|
quality: 100,
|
||||||
|
|||||||
11
pubspec.lock
11
pubspec.lock
@@ -935,12 +935,13 @@ packages:
|
|||||||
source: hosted
|
source: hosted
|
||||||
version: "1.10.0"
|
version: "1.10.0"
|
||||||
mime:
|
mime:
|
||||||
dependency: transitive
|
dependency: "direct overridden"
|
||||||
description:
|
description:
|
||||||
name: mime
|
path: "."
|
||||||
sha256: "2e123074287cc9fd6c09de8336dae606d1ddb88d9ac47358826db698c176a1f2"
|
ref: HEAD
|
||||||
url: "https://mirrors.tuna.tsinghua.edu.cn/dart-pub/"
|
resolved-ref: "922e1f3d0b68291c42a2ec3a83542a886ea9b041"
|
||||||
source: hosted
|
url: "https://github.com/orz12/mime/"
|
||||||
|
source: git
|
||||||
version: "1.0.5"
|
version: "1.0.5"
|
||||||
nil:
|
nil:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
|
|||||||
@@ -141,6 +141,9 @@ dependencies:
|
|||||||
#瀑布流
|
#瀑布流
|
||||||
waterfall_flow: ^3.0.3
|
waterfall_flow: ^3.0.3
|
||||||
marquee: ^2.2.3
|
marquee: ^2.2.3
|
||||||
|
dependency_overrides:
|
||||||
|
mime:
|
||||||
|
git: https://github.com/orz12/mime/
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|||||||
Reference in New Issue
Block a user