mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
@@ -28,7 +28,9 @@ abstract final class ImageUtils {
|
||||
static String get time =>
|
||||
DateFormat('yyyy-MM-dd_HH-mm-ss').format(DateTime.now());
|
||||
static bool silentDownImg = Pref.silentDownImg;
|
||||
static const _androidRelativePath = 'Pictures/${Constants.appName}';
|
||||
static final _albumPath = Platform.isAndroid
|
||||
? 'Pictures/${Constants.appName}'
|
||||
: Constants.appName;
|
||||
|
||||
// 图片分享
|
||||
static Future<void> onShareImg(String url) async {
|
||||
@@ -210,7 +212,7 @@ abstract final class ImageUtils {
|
||||
SaveFileData(
|
||||
filePath: i.filePath,
|
||||
fileName: i.name,
|
||||
androidRelativePath: _androidRelativePath,
|
||||
albumPath: _albumPath,
|
||||
),
|
||||
);
|
||||
} else {
|
||||
@@ -302,7 +304,7 @@ abstract final class ImageUtils {
|
||||
res = await SaverGallery.saveImage(
|
||||
bytes,
|
||||
fileName: fileName,
|
||||
androidRelativePath: _androidRelativePath,
|
||||
albumPath: _albumPath,
|
||||
skipIfExists: false,
|
||||
);
|
||||
SmartDialog.dismiss();
|
||||
@@ -346,7 +348,7 @@ abstract final class ImageUtils {
|
||||
res = await SaverGallery.saveFile(
|
||||
filePath: filePath,
|
||||
fileName: fileName,
|
||||
androidRelativePath: _androidRelativePath,
|
||||
albumPath: _albumPath,
|
||||
skipIfExists: false,
|
||||
);
|
||||
if (del) file.tryDel();
|
||||
|
||||
24
pubspec.lock
24
pubspec.lock
@@ -256,7 +256,7 @@ packages:
|
||||
description:
|
||||
path: "packages/chat_bottom_container"
|
||||
ref: dev
|
||||
resolved-ref: "88d5d2c3c76855258ead306d8921ef706033beef"
|
||||
resolved-ref: "227fe87aeedcd53573b17d6a6e5c08834fbc4e45"
|
||||
url: "https://github.com/bggRGjQaUbCoE/flutter_chat_packages.git"
|
||||
source: git
|
||||
version: "0.5.0"
|
||||
@@ -523,7 +523,7 @@ packages:
|
||||
description:
|
||||
path: "."
|
||||
ref: dev
|
||||
resolved-ref: f6c2ab82ce7539dc26e6c16e1455b435fd2ded09
|
||||
resolved-ref: "1b1197493d734c45e178c15fe665c3dcab284cb8"
|
||||
url: "https://github.com/bggRGjQaUbCoE/flutter_file_picker.git"
|
||||
source: git
|
||||
version: "12.0.0-beta.5"
|
||||
@@ -634,7 +634,7 @@ packages:
|
||||
description:
|
||||
path: flutter_inappwebview_android
|
||||
ref: "v6.1.5"
|
||||
resolved-ref: e0e82ff8492bbc77aecc37e3b4d02c0f3e3de40f
|
||||
resolved-ref: "553d323316cc1ef5d1b73077fe42be864e3e096d"
|
||||
url: "https://github.com/bggRGjQaUbCoE/flutter_inappwebview.git"
|
||||
source: git
|
||||
version: "1.1.3"
|
||||
@@ -711,10 +711,10 @@ packages:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
name: flutter_native_splash
|
||||
sha256: "4fb9f4113350d3a80841ce05ebf1976a36de622af7d19aca0ca9a9911c7ff002"
|
||||
sha256: "9db4b80b044e9af17cc4b1272137fc7ace0054d879ef8210a76adc34aaf4cdff"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.4.7"
|
||||
version: "2.4.8"
|
||||
flutter_plugin_android_lifecycle:
|
||||
dependency: transitive
|
||||
description:
|
||||
@@ -1230,7 +1230,7 @@ packages:
|
||||
description:
|
||||
path: "."
|
||||
ref: master
|
||||
resolved-ref: "2c74f4d534dfd9b8f66382f82b3540f32be9abd9"
|
||||
resolved-ref: "7be186c79adca7d3ff5abc34bc75d171c68c2694"
|
||||
url: "https://github.com/bggRGjQaUbCoE/flutter_native_device_orientation.git"
|
||||
source: git
|
||||
version: "2.0.5"
|
||||
@@ -1358,10 +1358,10 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: permission_handler_apple
|
||||
sha256: f000131e755c54cf4d84a5d8bd6e4149e262cc31c5a8b1d698de1ac85fa41023
|
||||
sha256: "447c18bc3c5fdea5c3039f042b2b365fd51e3634f5f6e269ed22c1f00071addc"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "9.4.7"
|
||||
version: "9.4.8"
|
||||
permission_handler_platform_interface:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
@@ -1486,10 +1486,10 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: saver_gallery
|
||||
sha256: "5afc7073672f6fd073ddd15118f53f59a2bceee433e586420a3548888cd40820"
|
||||
sha256: dcecd87113ffcb0eb467bb0ef5ed8f6dd894e26ff3dfd5822624281e7d2cb894
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "5.0.2"
|
||||
version: "5.1.0"
|
||||
screen_brightness_android:
|
||||
dependency: transitive
|
||||
description:
|
||||
@@ -1892,10 +1892,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: vector_graphics_compiler
|
||||
sha256: b9b3f391857781aa96acacef96066f2f49b4cd03cf9fce3ca4d8da2ef5ea129e
|
||||
sha256: "7ee12e6dffe0fc8e755179d6d91b3b34f5924223fc104d85572ef9180d73d172"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.2.3"
|
||||
version: "1.2.5"
|
||||
vector_math:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
||||
@@ -54,8 +54,8 @@ dependencies:
|
||||
chat_bottom_container:
|
||||
git:
|
||||
url: https://github.com/bggRGjQaUbCoE/flutter_chat_packages.git
|
||||
ref: dev
|
||||
path: packages/chat_bottom_container
|
||||
ref: dev
|
||||
collection: ^1.19.1
|
||||
connectivity_plus: ^7.1.1
|
||||
cookie_jar: ^4.0.8
|
||||
|
||||
Reference in New Issue
Block a user