Addresses an issue that could prevent iOS 14 users from accessing media data

This commit is contained in:
Miguel Ruivo 2020-09-23 16:08:42 +01:00
parent 346caf94d9
commit acf3f1b248
3 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,6 @@
## 2.0.1+2
iOS: Addresses an issue that could prevent users from viewing picked media elements (pictures/videos) from gallery on iOS 14.
## 2.0.1+1
Fixes README screenshots.

View File

@ -365,8 +365,7 @@ didPickDocumentsAtURLs:(NSArray<NSURL *> *)urls{
for (PHPickerResult *result in results) {
dispatch_group_enter(group);
[result.itemProvider loadFileRepresentationForTypeIdentifier: @"public.item"
completionHandler:^(NSURL * url, NSError * error) {
[result.itemProvider loadInPlaceFileRepresentationForTypeIdentifier:@"public.item" completionHandler:^(NSURL * _Nullable url, BOOL isInPlace, NSError * _Nullable error) {
[urls addObject:url];
dispatch_group_leave(group);
}];

View File

@ -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: 2.0.1+1
version: 2.0.1+2
dependencies:
flutter: