updates version, README and CHANGELOG
This commit is contained in:
parent
22c9eca7cf
commit
c144c21d88
|
@ -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
|
## 0.1.6
|
||||||
* Replaces commons dependency with FilePath class on Android, to handle path resolution on different SDK.
|
* Replaces commons dependency with FilePath class on Android, to handle path resolution on different SDK.
|
||||||
|
|
||||||
|
|
14
README.md
14
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/).
|
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
|
## Android
|
||||||
Add `<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />` to your app `AndroidManifest.xml` file.
|
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
|
## To-do
|
||||||
* [X] Load paths from local files & cloud (GDrive, Dropbox, iCloud)
|
* [X] Load paths from local files & cloud (GDrive, Dropbox, iCloud)
|
||||||
* [X] Load PDF file path
|
* [X] Load path from **PDF**
|
||||||
* [X] Load path from gallery
|
* [X] Load path from **gallery**
|
||||||
* [X] Load path from camera shot
|
* [X] Load path from **camera**
|
||||||
* [ ] Load a custom format
|
* [X] Load path from **video**
|
||||||
|
* [X] Load path from **any** type of file (without filtering)
|
||||||
|
* [ ] Load path from a **custom format**
|
||||||
|
|
||||||
## Demo App
|
## Demo App
|
||||||
|
|
||||||
|
@ -44,7 +46,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||||
|
|
||||||
void getFilePath() async {
|
void getFilePath() async {
|
||||||
try {
|
try {
|
||||||
String filePath = await FilePicker.getFilePath(type: FileType.PDF);
|
String filePath = await FilePicker.getFilePath(type: FileType.ANY);
|
||||||
if (filePath == '') {
|
if (filePath == '') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
BIN
example/demo.png
BIN
example/demo.png
Binary file not shown.
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 129 KiB |
|
@ -59,11 +59,11 @@ class _MyAppState extends State<MyApp> {
|
||||||
value: FileType.PDF,
|
value: FileType.PDF,
|
||||||
),
|
),
|
||||||
new DropdownMenuItem(
|
new DropdownMenuItem(
|
||||||
child: new Text('VIDEO'),
|
child: new Text('FROM VIDEO'),
|
||||||
value: FileType.VIDEO,
|
value: FileType.VIDEO,
|
||||||
),
|
),
|
||||||
new DropdownMenuItem(
|
new DropdownMenuItem(
|
||||||
child: new Text('ANY'),
|
child: new Text('FROM ANY'),
|
||||||
value: FileType.ANY,
|
value: FileType.ANY,
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: file_picker
|
name: file_picker
|
||||||
description: A plugin that allows you to pick absolute paths from diferent file types.
|
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>
|
author: Miguel Ruivo <miguelpruivo@outlook.com>
|
||||||
homepage: https://github.com/miguelpruivo/plugins_flutter_file_picker
|
homepage: https://github.com/miguelpruivo/plugins_flutter_file_picker
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue