see changelog
This commit is contained in:
parent
4d068d2747
commit
20ed446a9e
|
@ -1,3 +1,7 @@
|
|||
## 1.1.1
|
||||
|
||||
* Updates README file.
|
||||
|
||||
## 1.1.0
|
||||
|
||||
**Breaking changes**
|
||||
|
|
19
README.md
19
README.md
|
@ -1,7 +1,6 @@
|
|||
[![pub package](https://img.shields.io/pub/v/file_picker.svg)](https://pub.dartlang.org/packages/file_picker)
|
||||
<a href="https://github.com/Solido/awesome-flutter">
|
||||
<img alt="Awesome Flutter" src="https://img.shields.io/badge/Awesome-Flutter-blue.svg?longCache=true&style=flat-square" />
|
||||
</a>
|
||||
[![Awesome Flutter](https://img.shields.io/badge/Awesome-Flutter-blue.svg?longCache=true&style=flat-square)](https://github.com/Solido/awesome-flutter)
|
||||
|
||||
# file_picker
|
||||
|
||||
File picker plugin alows you to use a native file explorer to load absolute file path from different file types.
|
||||
|
@ -11,7 +10,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: ^1.1.0
|
||||
file_picker: ^1.1.1
|
||||
```
|
||||
## Android
|
||||
Add `<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>` to your app `AndroidManifest.xml` file.
|
||||
|
@ -24,6 +23,18 @@ Since we are using *image_picker* as a dependency from this plugin to load paths
|
|||
* `NSMicrophoneUsageDescription` - describe why your app needs access to the microphone, if you intend to record videos. This is called _Privacy - Microphone Usage Description_ in the visual editor.
|
||||
* `UIBackgroundModes` with the `fetch` and `remote-notifications` keys - describe why your app needs to access background taks, such downloading files (from cloud services) when not cached to locate path. This is called _Required background modes_, with the keys _App download content from network_ and _App downloads content in response to push notifications_ respectively in the visual editor (since both methods aren't actually overriden, not adding this property/keys may only display a warning, but shouldn't prevent its correct usage).
|
||||
|
||||
## Usage
|
||||
There's only one method within this package
|
||||
`FilePicker.getFilePath()`
|
||||
this receives 2 optional parameters, the `fileType` and a `fileExtension` to be used along with `FileType.CUSTOM`.
|
||||
So, 2 basically usages may be:
|
||||
```
|
||||
await FilePicker.getFilePath(type: FileType.ANY); // will display all file types
|
||||
await FilePicker.getFilePath(type: FileType.CUSTOM, fileExtension: 'svg'); // will filter and display only files with SVG extension.
|
||||
```
|
||||
|
||||
**Note:** When using `FileType.CUSTOM`, unsupported extensions will throw a `MissingPluginException` that is handled by the plugin.
|
||||
|
||||
## Currently supported features
|
||||
* [X] Load paths from **cloud files** (GDrive, Dropbox, iCloud)
|
||||
* [X] Load path from **gallery**
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 156 KiB After Width: | Height: | Size: 1.0 MiB |
|
@ -1,6 +1,6 @@
|
|||
name: file_picker
|
||||
description: A plugin that allows you to pick absolute paths from diferent file types.
|
||||
version: 1.1.0
|
||||
version: 1.1.1
|
||||
author: Miguel Ruivo <miguelpruivo@outlook.com>
|
||||
homepage: https://github.com/miguelpruivo/plugins_flutter_file_picker
|
||||
|
||||
|
|
Loading…
Reference in New Issue