Skip to content

Commit 9d62f50

Browse files
Merge pull request #1759 from miguelpruivo/feat/add-support-for-picking-both-files-and-directories-simultaneously-on-macos
feat: introduce new method `pickFileAndDirectoryPaths()`
2 parents 2012577 + af47334 commit 9d62f50

File tree

10 files changed

+285
-109
lines changed

10 files changed

+285
-109
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 10.1.0
2+
### Desktop (macOS)
3+
- Introduced a new method, `pickFileAndDirectoryPaths()`, which displays a dialog enabling users to select both files and directories simultaneously. The method returns their absolute paths. Only available for macOS.
4+
15
## 10.0.0
26
### General
37
- **BREAKING CHANGE:** The `compressionQuality` property in the `pickFiles` method now defaults to `0`.

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,21 @@ A package that allows you to use the native file explorer to pick single or mult
3232
* Supports retrieving as XFile (cross_file) for easy manipulation with other libraries
3333
* Different default type filtering (media, image, video, audio or any)
3434
* Picking directories
35+
* Picking both files and directories simultaneously
3536
* Load file data immediately into memory (`Uint8List`) if needed;
3637
* Open a save-file / save-as dialog (a dialog that lets the user specify the drive, directory, and name of a file to save)
3738

3839
If you have any feature that you want to see in this package, please feel free to issue a suggestion. 🎉
3940

4041
## Compatibility Chart
4142

42-
| API | Android | iOS | Linux | macOS | Windows | Web |
43-
|-----------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|
44-
| clearTemporaryFiles() | :heavy_check_mark: | :heavy_check_mark: | :x: | :x: | :x: | :x: |
45-
| getDirectoryPath() | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :x: |
46-
| pickFiles() | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
47-
| saveFile() | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
43+
| API | Android | iOS | Linux | macOS | Windows | Web |
44+
|-------------------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|
45+
| `clearTemporaryFiles()` | :white_check_mark: | :white_check_mark: | :x: | :x: | :x: | :x: |
46+
| `getDirectoryPath()` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |
47+
| `pickFileAndDirectoryPaths()` | :x: | :x: | :x: | :white_check_mark: | :x: | :x: |
48+
| `pickFiles()` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
49+
| `saveFile()` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
4850

4951
See the [API section of the File Picker Wiki](https://github.com/miguelpruivo/flutter_file_picker/wiki/api) or the [official API reference on pub.dev](https://pub.dev/documentation/file_picker/latest/file_picker/FilePicker-class.html) for further details.
5052

@@ -170,7 +172,7 @@ For full usage details refer to the **[Wiki](https://github.com/miguelpruivo/flu
170172
![DemoMultiFilters](https://github.com/miguelpruivo/flutter_file_picker/blob/master/example/screenshots/example_ios.gif?raw=true)
171173

172174
#### MacOS
173-
![DemoMacOS](https://github.com/miguelpruivo/flutter_file_picker/blob/master/example/screenshots/example_macos.png?raw=true)
175+
![DemoMacOS](https://github.com/miguelpruivo/flutter_file_picker/blob/master/example/screenshots/example_macos.gif?raw=true)
174176

175177
#### Linux
176178
![DemoLinux](https://github.com/miguelpruivo/flutter_file_picker/blob/master/example/screenshots/example_linux.gif?raw=true)

0 commit comments

Comments
 (0)