[image_picker] Multiple image support #3783
[image_picker] Multiple image support #3783
Conversation
3d24faa
to
db47a34
Compare
becf7d4
to
e8cf955
Compare
…dded log for <iOS14 versions;
This is really nice! Thanks. Since it is still a draft I will hold off reviewing it. Please ping me when it's ready and you want me to review it :) |
…_image_android # Conflicts: # packages/image_picker/image_picker/CHANGELOG.md # packages/image_picker/image_picker/pubspec.yaml
…' into image_picker_multi_image_android
# Conflicts: # packages/image_picker/image_picker/CHANGELOG.md # packages/image_picker/image_picker/pubspec.yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Please fix CI. |
@renefloor Looks like your comments have been addressed. Do you want to take another look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have 1 serious question in the Android code and some nits.
@@ -11,6 +11,9 @@ First, add `image_picker` as a [dependency in your pubspec.yaml file](https://fl | |||
|
|||
### iOS | |||
|
|||
Starting with version **0.8.1** the iOS implementation uses PHPicker to pick (multiple) images on iOS 14 or higher. | |||
As a result of implementing PHPicker it becomes impossible to pick HEIC images on the iOS simulator in iOS 14+. This is a known issue. Please test this on a real device, or test with non-HEIC images until Apple solves this issue.[63426347 - Apple known issue](https://www.google.com/search?q=63426347+apple&sxsrf=ALeKk01YnTMid5S0PYvhL8GbgXJ40ZS[…]t=gws-wiz&ved=0ahUKEwjKh8XH_5HwAhWL_rsIHUmHDN8Q4dUDCA8&uact=5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a Google Search URL, is there a direct link to the Apple issue tracker? I can only find forum threads like this: https://developer.apple.com/forums/thread/658135
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, there is not an issue tracker. Not one publicly available. It seems those issues can contain private data which is why they are private.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is https://developer.apple.com/forums/thread/658135 a better link? @danielroek
@@ -1,3 +1,8 @@ | |||
## 0.8.1 | |||
|
|||
* Add a new method `getMultiImage` to allow picking multiple images on iOS 14 or higher and Android 4.3 or higher. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe nice to mention what this function does on older devices. Does it pick 1 or does it not work at all?
@@ -564,6 +625,17 @@ private void finishWithSuccess(String imagePath) { | |||
clearMethodCallAndResult(); | |||
} | |||
|
|||
private void finishWithListSuccess(ArrayList<String> imagePaths) { | |||
if (pendingResult == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we also call clearMethodCallAndResult();
in this case?
Co-authored-by: Rene Floor <r.floor.1@gmail.com>
Co-authored-by: Rene Floor <r.floor.1@gmail.com>
…w/flutter-plugins into image_picker_multi_image_android
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
# Conflicts: # packages/image_picker/image_picker/CHANGELOG.md # packages/image_picker/image_picker/README.md # packages/image_picker/image_picker/example/android/app/src/test/java/io/flutter/plugins/imagepicker/ImagePickerDelegateTest.java # packages/image_picker/image_picker/lib/image_picker.dart # packages/image_picker/image_picker/pubspec.yaml # packages/image_picker/image_picker/test/image_picker_test.dart
Implements functionality to pick multiple images in iOS14+ and Android.
Fixes #16054
Fixes #82519
Pre-launch Checklist
[shared_preferences]
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.