mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-08 20:14:51 +08:00
@@ -320,6 +320,7 @@ abstract final class ImageUtils {
|
||||
final savePath = await FilePicker.saveFile(
|
||||
type: FileType.image,
|
||||
fileName: fileName,
|
||||
bytes: Uint8List(0),
|
||||
);
|
||||
if (savePath == null) {
|
||||
SmartDialog.showToast("取消保存");
|
||||
@@ -357,6 +358,7 @@ abstract final class ImageUtils {
|
||||
final savePath = await FilePicker.saveFile(
|
||||
type: type,
|
||||
fileName: fileName,
|
||||
bytes: Uint8List(0),
|
||||
);
|
||||
if (savePath == null) {
|
||||
SmartDialog.showToast("取消保存");
|
||||
|
||||
@@ -17,7 +17,7 @@ abstract final class StorageUtils {
|
||||
allowedExtensions: allowedExtensions,
|
||||
type: type,
|
||||
fileName: name,
|
||||
bytes: PlatformUtils.isDesktop ? null : bytes,
|
||||
bytes: PlatformUtils.isDesktop ? Uint8List(0) : bytes,
|
||||
);
|
||||
if (path == null) {
|
||||
SmartDialog.showToast("取消保存");
|
||||
|
||||
Reference in New Issue
Block a user