Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[image_picker] Adds comment for the limit parameter #6678

Merged
merged 7 commits into from
May 31, 2024

Conversation

LinXunFeng
Copy link
Member

Fixes flutter/flutter#147773

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@@ -112,6 +112,12 @@ class ImagePicker {
/// image types such as JPEG and on Android PNG and WebP, too. If compression is not
/// supported for the image that is picked, a warning message will be logged.
///
/// The `limit` parameter modifies the maximum number of images that can be selected.
/// On Android, you need to set ImagePickerAndroid's useAndroidPhotoPicker to
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be [] around ImagePickerAndroid, and `` around useAndroidPhotoPicker

This also seems a little verbose, maybe shorten it to

On Android, [ImagePickerAndroid.useAndroidPhotoPicker] must be set to `true` to use the `limit` functionality

I'm not sure the see: [link] part is necessary either.

Same for the other instance of this comment.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review, I've readjusted it.

@tarrinneal
Copy link
Contributor

I guess, before this gets merged, is this a feature that isn't available in the android sdk? or is it just not implemented properly in the plugin?

@LinXunFeng
Copy link
Member Author

I made a reply here(flutter/flutter#147773 (comment)) and adjusted the comment. Please review again.

@LinXunFeng LinXunFeng requested a review from gmackall as a code owner May 9, 2024 01:04
@LinXunFeng LinXunFeng force-pushed the image_picker_comment branch 2 times, most recently from 7f80eaf to 5b0a880 Compare May 17, 2024 01:05
@reidbaker
Copy link
Contributor

It looks like there are some comments here otherwise the PR looks good. Do you plan to update this pr? if not we understand and thank you for the effort you have already spent.

@reidbaker reidbaker self-requested a review May 30, 2024 18:48
@LinXunFeng
Copy link
Member Author

@reidbaker, thanks for your review.

I have previously moved the comments about the Android part to the README of image_picker_android according to @stuartmorgan 's suggestion. Then the PR is waiting for further review and there is no other update.

Now I have rebased the latest code and resolved the conflict.

Copy link
Contributor

@stuartmorgan stuartmorgan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with two small fixes.

packages/image_picker/image_picker_android/README.md Outdated Show resolved Hide resolved
packages/image_picker/image_picker_android/CHANGELOG.md Outdated Show resolved Hide resolved
@reidbaker reidbaker added the autosubmit Merge PR when tree becomes green via auto submit App label May 31, 2024
@auto-submit auto-submit bot merged commit d8e8e8c into flutter:main May 31, 2024
74 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 31, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 31, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request May 31, 2024
flutter/packages@910fabb...d8e8e8c

2024-05-31 linxunfeng@yeah.net [image_picker] Adds comment for the limit parameter (flutter/packages#6678)
2024-05-30 jonahwilliams@google.com Revert "Migrate CameraX from SurfaceTexture to SurfaceProducer." (flutter/packages#6838)
2024-05-30 10687576+bparrishMines@users.noreply.github.com [pigeon] Updates `PigeonInstanceMangerApi` to use the shared api channel code in Dart (flutter/packages#6831)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
victorsanni pushed a commit to victorsanni/flutter that referenced this pull request May 31, 2024
…r#149429)

flutter/packages@910fabb...d8e8e8c

2024-05-31 linxunfeng@yeah.net [image_picker] Adds comment for the limit parameter (flutter/packages#6678)
2024-05-30 jonahwilliams@google.com Revert "Migrate CameraX from SurfaceTexture to SurfaceProducer." (flutter/packages#6838)
2024-05-30 10687576+bparrishMines@users.noreply.github.com [pigeon] Updates `PigeonInstanceMangerApi` to use the shared api channel code in Dart (flutter/packages#6831)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App p: image_picker platform-android
Projects
None yet
4 participants