mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-03 01:28:17 +08:00
@@ -316,6 +316,7 @@ abstract final class ImageUtils {
|
||||
final savePath = await FilePicker.saveFile(
|
||||
type: FileType.image,
|
||||
fileName: fileName,
|
||||
bytes: Uint8List(0),
|
||||
);
|
||||
if (savePath == null) {
|
||||
SmartDialog.showToast("取消保存");
|
||||
@@ -353,6 +354,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