diff --git a/CHANGELOG.md b/CHANGELOG.md index f8379f9..c13f24e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2.0.2+2 +Fixes multi-pick example on README. + ## 2.0.2+1 iOS: Fixes conditional import for backwards compatibility with Xcode 11. diff --git a/README.md b/README.md index 5c3ab0b..bd58d96 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ if(result != null) { FilePickerResult result = await FilePicker.platform.pickFiles(allowMultiple: true); if(result != null) { - List files = result.paths.map((path) => File(path)); + List files = result.paths.map((path) => File(path)).toList(); } ``` #### Multiple files with extension filter diff --git a/pubspec.yaml b/pubspec.yaml index eed1bbc..7dabf88 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: file_picker description: A package that allows you to use a native file explorer to pick single or multiple absolute file paths, with extension filtering support. homepage: https://github.com/miguelpruivo/plugins_flutter_file_picker -version: 2.0.2+1 +version: 2.0.2+2 dependencies: flutter: