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( ListTile(
onTap: () async { onTap: () async {
Get.back(); Get.back();
final path = await FilePicker.platform.getDirectoryPath(); final path = await FilePicker.getDirectoryPath();
if (path == null || path == downloadPath) return; if (path == null || path == downloadPath) return;
downloadPath = path; downloadPath = path;
setState(); setState();

View File

@@ -667,7 +667,7 @@ class HeaderControlState extends State<HeaderControl>
onTap: () async { onTap: () async {
Get.back(); Get.back();
try { try {
final result = await FilePicker.platform.pickFiles(); final result = await FilePicker.pickFiles();
if (result != null) { if (result != null) {
final file = result.files.single; final file = result.files.single;
final path = file.path; final path = file.path;

View File

@@ -311,7 +311,7 @@ abstract final class ImageUtils {
} }
} else { } else {
SmartDialog.dismiss(); SmartDialog.dismiss();
final savePath = await FilePicker.platform.saveFile( final savePath = await FilePicker.saveFile(
type: FileType.image, type: FileType.image,
fileName: fileName, fileName: fileName,
); );
@@ -348,7 +348,7 @@ abstract final class ImageUtils {
); );
if (del) file.tryDel(); if (del) file.tryDel();
} else { } else {
final savePath = await FilePicker.platform.saveFile( final savePath = await FilePicker.saveFile(
type: type, type: type,
fileName: fileName, fileName: fileName,
); );

View File

@@ -43,7 +43,7 @@ abstract final class Utils {
FileType type = FileType.custom, FileType type = FileType.custom,
}) async { }) async {
try { try {
final path = await FilePicker.platform.saveFile( final path = await FilePicker.saveFile(
allowedExtensions: allowedExtensions, allowedExtensions: allowedExtensions,
type: type, type: type,
fileName: name, fileName: name,

View File

@@ -529,11 +529,11 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
path: "." path: "."
ref: "v10.3.10" ref: mod
resolved-ref: fd8afd89260436b63b9d41e150b4eb3c806cc8fd resolved-ref: "11ef8f872482b31d570787e60c813e565dcfd011"
url: "https://github.com/bggRGjQaUbCoE/flutter_file_picker.git" url: "https://github.com/bggRGjQaUbCoE/flutter_file_picker.git"
source: git source: git
version: "10.3.10" version: "11.0.0"
file_selector_linux: file_selector_linux:
dependency: transitive dependency: transitive
description: description:

View File

@@ -221,7 +221,7 @@ dependencies:
file_picker: file_picker:
git: git:
url: https://github.com/bggRGjQaUbCoE/flutter_file_picker.git url: https://github.com/bggRGjQaUbCoE/flutter_file_picker.git
ref: v10.3.10 ref: mod
super_sliver_list: super_sliver_list:
git: git:
url: https://github.com/bggRGjQaUbCoE/super_sliver_list.git url: https://github.com/bggRGjQaUbCoE/super_sliver_list.git