upgrade dep

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-03-09 17:43:50 +08:00
parent 3b09534320
commit b8cae015d7
6 changed files with 9 additions and 9 deletions

View File

@@ -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();

View File

@@ -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;

View File

@@ -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,
);

View File

@@ -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,

View File

@@ -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:

View File

@@ -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