Updates FilePickerPlatform to MethodChannelFilePicker on IO implementation

This commit is contained in:
Miguel Ruivo 2020-07-23 17:25:21 +01:00
parent b63125dfcf
commit 1e78f28220
3 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,6 @@
## 1.13.0+1
Fixes an issue that could prevent `1.13.0` from being built due to missing `allowCompression` property.
## 1.13.0 ## 1.13.0
Adds `allowCompression` property that will define if media (video & image) files are allowed to be compressed by OS when picked. On Android this has no effect as it already returns the original file or an integral copy. Adds `allowCompression` property that will define if media (video & image) files are allowed to be compressed by OS when picked. On Android this has no effect as it already returns the original file or an integral copy.

View File

@ -2,11 +2,12 @@ import 'dart:async';
import 'dart:io'; import 'dart:io';
import 'package:file_picker_platform_interface/file_picker_platform_interface.dart'; import 'package:file_picker_platform_interface/file_picker_platform_interface.dart';
import 'package:file_picker_platform_interface/method_channel_file_picker.dart';
export 'package:file_picker_platform_interface/file_picker_platform_interface.dart' export 'package:file_picker_platform_interface/file_picker_platform_interface.dart'
show FileType; show FileType;
final FilePickerPlatform _filePickerPlatform = FilePickerPlatform.instance; final MethodChannelFilePicker _filePickerPlatform = FilePickerPlatform.instance;
class FilePicker { class FilePicker {
FilePicker._(); FilePicker._();

View File

@ -1,13 +1,13 @@
name: file_picker name: file_picker
description: A package that allows you to use a native file explorer to pick single or multiple absolute file paths, with extension filtering support. description: A package that allows you to use a native file explorer to pick single or multiple absolute file paths, with extension filtering support.
homepage: https://github.com/miguelpruivo/plugins_flutter_file_picker homepage: https://github.com/miguelpruivo/plugins_flutter_file_picker
version: 1.13.0 version: 1.13.0+1
dependencies: dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
flutter_plugin_android_lifecycle: ^1.0.6 flutter_plugin_android_lifecycle: ^1.0.6
file_picker_platform_interface: ^1.3.0 file_picker_platform_interface: ^1.3.1
environment: environment:
sdk: ">=2.0.0 <3.0.0" sdk: ">=2.0.0 <3.0.0"