Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 7639114

Browse files
eugerossettoadpinola
authored andcommitted
Add getDirectoriesPaths method to the file_selector_platform_interface
1 parent b1c457f commit 7639114

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

packages/file_selector/file_selector_platform_interface/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## 2.3.0
1+
## 2.3.0+1
22

3+
* Adds `getDirectoriesPaths` method to interface.
34
* Replaces `macUTIs` with `uniformTypeIdentifiers`. `macUTIs` is available as an alias, but will be deprecated in a future release.
45

56
## 2.2.0

packages/file_selector/file_selector_platform_interface/lib/src/platform_interface/file_selector_interface.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,13 @@ abstract class FileSelectorPlatform extends PlatformInterface {
7474
}) {
7575
throw UnimplementedError('getDirectoryPath() has not been implemented.');
7676
}
77+
78+
/// Open file dialog for loading directories and return multiple directories paths
79+
/// Returns `null` if user cancels the operation.
80+
Future<List<String?>> getDirectoriesPaths({
81+
String? initialDirectory,
82+
String? confirmButtonText,
83+
}) {
84+
throw UnimplementedError('getDirectoriesPaths() has not been implemented.');
85+
}
7786
}

packages/file_selector/file_selector_platform_interface/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ repository: https://github.com/flutter/plugins/tree/main/packages/file_selector/
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+file_selector%22
55
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
66
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
7-
version: 2.3.0
7+
version: 2.3.0+1
88

99
environment:
1010
sdk: ">=2.12.0 <3.0.0"

0 commit comments

Comments
 (0)