Viewing version 3.0.0. Open the latest package page.
file_picker_platform_interface
3.0.0A common platform interface for the file_picker plugin.
Readme
file_picker_platform_interface
A common platform interface for the file_picker plugin.
This package defines the interface that all platform implementation packages for file_picker (such as android_file_picker, file_picker_darwin, file_picker_windows, file_picker_linux, file_picker_web) must implement.
Usage
To implement a new platform plugin for file_picker, extend FilePickerPlatform and register your implementation:
class FilePickerCustomPlatform extends FilePickerPlatform {
static void registerWith() {
FilePickerPlatform.instance = FilePickerCustomPlatform();
}
// Implement methods...
}
Changelog
3.0.0
- Unified platform interface release for federated
file_pickerarchitecture.
2.0.0
- Deprecates interface in favor of standalone
file_pickerfor all platforms.
1.3.1
- Removes
allowCompressionfrom interface as it should only be used fromfile_picker(Android & iOS).
1.3.0
- Adds
allowCompressionparameter.
1.2.0
- Adds
FilePickerStatus.
1.1.0
- Implements
getDirectoryPath().
1.0.0
- Implements
getFiles().
0.0.3
- Removes
getFilePath().
0.0.2
- Updates methods from File Picker interface.
0.0.1
- Added File Picker platform interface.
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'file_picker_platform_interface:3.0.0'pubspec.yaml
name: file_picker_platform_interface
description: A common platform interface for the file_picker plugin.
version: 3.0.0
homepage: https://github.com/miguelpruivo/flutter_file_picker/tree/master/packages/file_picker_platform_interface
repository: https://github.com/miguelpruivo/flutter_file_picker/tree/master/packages/file_picker_platform_interface
topics:
- file-picker
- platform-interface
resolution: workspace
environment:
sdk: ">=3.10.0 <4.0.0"
flutter: ">=3.38.0"
dependencies:
flutter:
sdk: flutter
plugin_platform_interface: ^2.1.8
cross_file: ^0.3.5+4
path: ^1.9.1
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^6.0.0
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
cross_file "^0.3.5+4"
flutter {
"sdk": "flutter"
}
path "^1.9.1"
plugin_platform_interface "^2.1.8"