mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
@@ -770,7 +770,7 @@ void _showDownPathDialog(BuildContext context, VoidCallback setState) {
|
||||
ListTile(
|
||||
onTap: () async {
|
||||
Get.back();
|
||||
final path = await FilePicker.platform.getDirectoryPath();
|
||||
final path = await FilePicker.getDirectoryPath();
|
||||
if (path == null || path == downloadPath) return;
|
||||
downloadPath = path;
|
||||
setState();
|
||||
|
||||
@@ -667,7 +667,7 @@ class HeaderControlState extends State<HeaderControl>
|
||||
onTap: () async {
|
||||
Get.back();
|
||||
try {
|
||||
final result = await FilePicker.platform.pickFiles();
|
||||
final result = await FilePicker.pickFiles();
|
||||
if (result != null) {
|
||||
final file = result.files.single;
|
||||
final path = file.path;
|
||||
|
||||
@@ -311,7 +311,7 @@ abstract final class ImageUtils {
|
||||
}
|
||||
} else {
|
||||
SmartDialog.dismiss();
|
||||
final savePath = await FilePicker.platform.saveFile(
|
||||
final savePath = await FilePicker.saveFile(
|
||||
type: FileType.image,
|
||||
fileName: fileName,
|
||||
);
|
||||
@@ -348,7 +348,7 @@ abstract final class ImageUtils {
|
||||
);
|
||||
if (del) file.tryDel();
|
||||
} else {
|
||||
final savePath = await FilePicker.platform.saveFile(
|
||||
final savePath = await FilePicker.saveFile(
|
||||
type: type,
|
||||
fileName: fileName,
|
||||
);
|
||||
|
||||
@@ -43,7 +43,7 @@ abstract final class Utils {
|
||||
FileType type = FileType.custom,
|
||||
}) async {
|
||||
try {
|
||||
final path = await FilePicker.platform.saveFile(
|
||||
final path = await FilePicker.saveFile(
|
||||
allowedExtensions: allowedExtensions,
|
||||
type: type,
|
||||
fileName: name,
|
||||
|
||||
@@ -529,11 +529,11 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
path: "."
|
||||
ref: "v10.3.10"
|
||||
resolved-ref: fd8afd89260436b63b9d41e150b4eb3c806cc8fd
|
||||
ref: mod
|
||||
resolved-ref: "11ef8f872482b31d570787e60c813e565dcfd011"
|
||||
url: "https://github.com/bggRGjQaUbCoE/flutter_file_picker.git"
|
||||
source: git
|
||||
version: "10.3.10"
|
||||
version: "11.0.0"
|
||||
file_selector_linux:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
||||
@@ -221,7 +221,7 @@ dependencies:
|
||||
file_picker:
|
||||
git:
|
||||
url: https://github.com/bggRGjQaUbCoE/flutter_file_picker.git
|
||||
ref: v10.3.10
|
||||
ref: mod
|
||||
super_sliver_list:
|
||||
git:
|
||||
url: https://github.com/bggRGjQaUbCoE/super_sliver_list.git
|
||||
|
||||
Reference in New Issue
Block a user