From e8075e3f9679dbe38436c8e474da68917d330584 Mon Sep 17 00:00:00 2001 From: Miguel Ruivo Date: Wed, 3 Mar 2021 21:35:49 +0000 Subject: [PATCH] Updates plugin_platform_interface --- CHANGELOG.md | 2 +- lib/src/file_picker_result.dart | 2 +- pubspec.yaml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 88cc80c..e8a3b8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 3.0.0-nullsafety.2 +## 3.0.0-nullsafety.4 Adds null safety support (pre-release) ([#510](https://github.com/miguelpruivo/flutter_file_picker/issues/510)). ## 2.1.7 ### iOS diff --git a/lib/src/file_picker_result.dart b/lib/src/file_picker_result.dart index ecf531d..2c50356 100644 --- a/lib/src/file_picker_result.dart +++ b/lib/src/file_picker_result.dart @@ -19,7 +19,7 @@ class FilePickerResult { /// original files (which can be accessed through its URI property). /// /// Only available on IO. Throws `UnsupportedError` on Web. - List get paths => files + List get paths => files .map((file) => kIsWeb ? throw UnsupportedError( 'Picking paths is unsupported on Web. Please, use bytes property instead.') diff --git a/pubspec.yaml b/pubspec.yaml index 6be6b1d..ecdb15e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ 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. homepage: https://github.com/miguelpruivo/plugins_flutter_file_picker -version: 3.0.0-nullsafety.2 +version: 3.0.0-nullsafety.4 dependencies: flutter: @@ -10,10 +10,10 @@ dependencies: sdk: flutter flutter_plugin_android_lifecycle: ^2.0.0-nullsafety - plugin_platform_interface: ^1.1.0-nullsafety.1 + plugin_platform_interface: ^2.0.0 environment: - sdk: ">=2.12.0-29.10.beta <3.0.0" + sdk: ">=2.12.0 <3.0.0" flutter: ">=1.10.0 <2.0.0" flutter: