This commit is contained in:
Miguel Ruivo 2021-03-03 22:08:52 +00:00
parent 7c24fba9e8
commit 627c0a31b2
3 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,8 @@
## 2.1.7
### iOS
- Fixes an issue where a crash could happen when picking a lot of media files in low memory devices ([#606](https://github.com/miguelpruivo/flutter_file_picker/issues/606)).
- Updates `preferredAssetRepresentationMode`. Thank you @nrikiji.
## 2.1.6
- Addresses an issue on iOS 14 and later where events `onFileLoading` events weren't being provided ([#577](https://github.com/miguelpruivo/flutter_file_picker/issues/577)).

View File

@ -266,8 +266,10 @@
[dkImagePickerController setDidSelectAssets:^(NSArray<DKAsset*> * __nonnull DKAssets) {
NSMutableArray<NSURL*>* paths = [[NSMutableArray<NSURL*> alloc] init];
for(DKAsset * asset in DKAssets){
[paths addObject:asset.localTemporaryPath.absoluteURL];
for(DKAsset * asset in DKAssets) {
if(asset.localTemporaryPath.absoluteURL != nil) {
[paths addObject:asset.localTemporaryPath.absoluteURL];
}
}
[self handleResult: paths];

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.1.6
version: 2.1.7
dependencies:
flutter: