diff --git a/CHANGELOG.md b/CHANGELOG.md index 4020d6e..91e9d69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## 1.0.0 + + * **Version 1.0** release. + * Adds support for ANY and VIDEO files. + * Fixes an issue where permissions were recursively asked on Android. + * Fixes an issue where some paths from document files couldn't be loaded with Android 8.0. + * Updates README file to match changes. + * General refactor & cleanup. + ## 0.1.6 * Replaces commons dependency with FilePath class on Android, to handle path resolution on different SDK. diff --git a/README.md b/README.md index 5c05ef3..bef237f 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ File picker plugin alows you to use a native file explorer to load absolute file First, add *file_picker* as a dependency in [your pubspec.yaml file](https://flutter.io/platform-plugins/). ``` -file_picker: ^0.1.3 +file_picker: ^1.0 ``` ## Android Add `` to your app `AndroidManifest.xml` file. @@ -21,10 +21,12 @@ Since we are using *image_picker* as a dependency from this plugin to load paths ## To-do * [X] Load paths from local files & cloud (GDrive, Dropbox, iCloud) -* [X] Load PDF file path -* [X] Load path from gallery -* [X] Load path from camera shot -* [ ] Load a custom format +* [X] Load path from **PDF** +* [X] Load path from **gallery** +* [X] Load path from **camera** +* [X] Load path from **video** +* [X] Load path from **any** type of file (without filtering) +* [ ] Load path from a **custom format** ## Demo App @@ -44,7 +46,7 @@ class _MyHomePageState extends State { void getFilePath() async { try { - String filePath = await FilePicker.getFilePath(type: FileType.PDF); + String filePath = await FilePicker.getFilePath(type: FileType.ANY); if (filePath == '') { return; } diff --git a/example/demo.png b/example/demo.png index b2bf21c..3811f04 100644 Binary files a/example/demo.png and b/example/demo.png differ diff --git a/example/lib/main.dart b/example/lib/main.dart index 6f3ac75..4ba80ab 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -59,11 +59,11 @@ class _MyAppState extends State { value: FileType.PDF, ), new DropdownMenuItem( - child: new Text('VIDEO'), + child: new Text('FROM VIDEO'), value: FileType.VIDEO, ), new DropdownMenuItem( - child: new Text('ANY'), + child: new Text('FROM ANY'), value: FileType.ANY, ) ], diff --git a/pubspec.yaml b/pubspec.yaml index 751ef78..322214b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: file_picker description: A plugin that allows you to pick absolute paths from diferent file types. -version: 0.1.6 +version: 1.0.0 author: Miguel Ruivo homepage: https://github.com/miguelpruivo/plugins_flutter_file_picker