Viewing version 1.3.1. Open the latest package page.
file_picker_platform_interface
1.3.1A common platform interface for the file_picker plugin that must be used to share commom features
Readme
file_picker_platform_interface
A common platform interface for the file_picker plugin.
This interface allows platform-specific implementations of the file_picker
plugin, as well as the plugin itself, to ensure they are supporting the
same interface.
Usage
To implement a new platform-specific implementation of file_picker, extend
FilePickerPlatform with an implementation that performs the
platform-specific behavior, and when you register your plugin, set the default
FilePickerPlatform by calling
FilePickerPlatform.instance = MyPlatformFilePicker().
Note on breaking changes
Strongly prefer non-breaking changes (such as adding a method to the interface) over breaking changes for this package.
See https://flutter.dev/go/platform-interface-breaking-changes for a discussion on why a less-clean interface is preferable to a breaking change.
Changelog
[1.3.1] - Rollback allowCompression
Removes allowCompression from interface as it should only be used from file_picker (Android & iOS).
[1.3.0] - Adds allowCompression parameter
Adds allowCompression that will allow developers to set whether the picked media files (image/video) can be automatically compressed by OS or not. Defaults to true.
[1.2.0] - Adds FilePickerStatus
Adds onFiledLoading that will provide an event handler with FilePickerStatus when picking files.
[1.1.0] - Adds directory pick
Implements getDirectoryPath()
[1.0.0] - Updates method channel
Implements getFiles()
[0.0.3] - Updates interface
Removes getFilePath()
[0.0.2] - Updates interface
Updates methods from File Picker interface
[0.0.1+1] - Update README
Updates README
[0.0.1] - Create Platform Interface
Added Filer Picker platform interface.
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'file_picker_platform_interface:1.3.1'pubspec.yaml
name: file_picker_platform_interface
description: A common platform interface for the file_picker plugin that must be used to share commom features
homepage: https://github.com/miguelpruivo/plugins_flutter_file_picker/file_picker_platform_interface
version: 1.3.1
environment:
sdk: ">=2.1.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
plugin_platform_interface: ^1.0.1
dev_dependencies:
flutter_test:
sdk: flutter
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 0.0.1 | Cached · Upstream SHA-256 matched | Download | 36693dad…826808 |
| 0.0.1+1 | Cached · Upstream SHA-256 matched | Download | c1fe6630…0af199 |
| 0.0.2 | Cached · Upstream SHA-256 matched | Download | 90dd6269…46fd22 |
| 0.0.3 | Cached · Upstream SHA-256 matched | Download | 4e9f9473…5f9506 |
| 1.0.0 | Cached · Upstream SHA-256 matched | Download | 1ebbcf61…0913d5 |
| 1.1.0 | Cached · Upstream SHA-256 matched | Download | 946955a1…b4c937 |
| 1.2.0 | Cached · Upstream SHA-256 matched | Download | ff068bf7…e59ecb |
| 1.3.0 | Cached · Upstream SHA-256 matched | Download | 00fd05bc…37203e |
| 1.3.1 | Cached · Upstream SHA-256 matched | Download | fdd0f666…2abf0e |
| 2.0.0 | Cached · Upstream SHA-256 matched | Download | 70593271…538566 |
| 3.0.0 | Cached · Upstream SHA-256 matched | Download | bfa1bfc6…2f94f4 |
| 3.0.1 | Cached · Upstream SHA-256 matched | Download | 9e7a7e01…bef90c |
| 3.1.0 | Cached · Upstream SHA-256 matched | Download | b1ddd790…4c86bd |
| 3.2.0 | Cached · Upstream SHA-256 matched | Download | 11ef1b5c…916fc1 |
| 3.3.0 | Cached · Upstream SHA-256 matched | Download | d35d8cb6…e5afd8 |
| 3.4.0 | Cached · Upstream SHA-256 matched | Download | 0355558f…d0e9ca |
| 4.0.0 | Cached · Upstream SHA-256 matched | Download | bbdc085a…107ba5 |
| 4.1.0 | Cached · Upstream SHA-256 matched | Download | a78bd8ec…de7160 |
| 4.2.0 | Cached · Upstream SHA-256 matched | Download | 336e7168…97cf20 |
Dependencies
flutter {
"sdk": "flutter"
}
plugin_platform_interface "^1.0.1"