updates version, README and CHANGELOG

This commit is contained in:
Miguel Ruivo 2018-12-06 14:43:01 +00:00
parent 22c9eca7cf
commit c144c21d88
5 changed files with 20 additions and 9 deletions

View File

@ -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.

View File

@ -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 `<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />` 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<MyHomePage> {
void getFilePath() async {
try {
String filePath = await FilePicker.getFilePath(type: FileType.PDF);
String filePath = await FilePicker.getFilePath(type: FileType.ANY);
if (filePath == '') {
return;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 129 KiB

View File

@ -59,11 +59,11 @@ class _MyAppState extends State<MyApp> {
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,
)
],

View File

@ -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 <miguelpruivo@outlook.com>
homepage: https://github.com/miguelpruivo/plugins_flutter_file_picker