Skip to content

Conversation

@hgraceb
Copy link
Member

@hgraceb hgraceb commented Oct 11, 2025

A part split from #10188.

Pre-Review Checklist

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2 3

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly fixes a typo in an error message for the limit parameter and improves the associated tests by making them more specific. The changes are solid. I've added a few minor suggestions to fix typos in test descriptions and to address some code duplication in the tests for better maintainability.

Comment on lines +1102 to +1109
final Matcher throwsLimitArgumentError = throwsA(
isA<ArgumentError>()
.having((ArgumentError error) => error.name, 'name', 'limit')
.having(
(ArgumentError error) => error.message,
'message',
'cannot be lower than 2',
),
);

Choose a reason for hiding this comment

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

medium

This throwsLimitArgumentError matcher is also defined in the test for getMultiImageWithOptions around line 1841. To improve maintainability and avoid code duplication, consider defining this matcher once at the top level of the file and reusing it in both tests.

@hgraceb hgraceb force-pushed the image_picker_interface branch from ccdf957 to b3c997f Compare October 15, 2025 11:43
@hgraceb hgraceb added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 22, 2025
@auto-submit auto-submit bot merged commit 501d8c9 into flutter:main Oct 22, 2025
80 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 22, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 22, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 23, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Oct 23, 2025
flutter/packages@d113bbc...9ec29b6

2025-10-22 [email protected] [go_router] Support for top level
`onEnter` callback. (flutter/packages#8339)
2025-10-22 [email protected] [go_router_builder] Ignore experimental
features (flutter/packages#10275)
2025-10-22 [email protected] Roll Flutter from
2d34167 to 75004a6 (39 revisions) (flutter/packages#10279)
2025-10-22 [email protected] [ci]Adds mechanism
for packages to opt in to batched release (flutter/packages#10237)
2025-10-22 [email protected] [tool] Change
gradle-check logic to enforce alignment of java versions and a minimum
(17) (flutter/packages#10206)
2025-10-22 [email protected] [various] Migrate example Radio groups
to new RadioGroup API (flutter/packages#10155)
2025-10-22 [email protected] [mustache_template] Emoji support
(flutter/packages#10110)
2025-10-22 [email protected] [image_picker] Fix
typos in error messages for android (flutter/packages#10188)
2025-10-22 [email protected] [image_picker] Fix
typos in error messages for platform interface (flutter/packages#10211)
2025-10-21 [email protected] [camera_avfoundation] Wrappers
swift migration - part 1 (flutter/packages#10119)
2025-10-21 [email protected] [go_router_builder] expand supported
versions of analyzer, build and source_gen (flutter/packages#10078)
2025-10-20 [email protected] Roll Flutter from
891d7d5 to 2d34167 (18 revisions) (flutter/packages#10268)

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 [email protected] 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
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Oct 24, 2025
flutter/packages@d113bbc...9ec29b6

2025-10-22 [email protected] [go_router] Support for top level
`onEnter` callback. (flutter/packages#8339)
2025-10-22 [email protected] [go_router_builder] Ignore experimental
features (flutter/packages#10275)
2025-10-22 [email protected] Roll Flutter from
2d34167 to 75004a6 (39 revisions) (flutter/packages#10279)
2025-10-22 [email protected] [ci]Adds mechanism
for packages to opt in to batched release (flutter/packages#10237)
2025-10-22 [email protected] [tool] Change
gradle-check logic to enforce alignment of java versions and a minimum
(17) (flutter/packages#10206)
2025-10-22 [email protected] [various] Migrate example Radio groups
to new RadioGroup API (flutter/packages#10155)
2025-10-22 [email protected] [mustache_template] Emoji support
(flutter/packages#10110)
2025-10-22 [email protected] [image_picker] Fix
typos in error messages for android (flutter/packages#10188)
2025-10-22 [email protected] [image_picker] Fix
typos in error messages for platform interface (flutter/packages#10211)
2025-10-21 [email protected] [camera_avfoundation] Wrappers
swift migration - part 1 (flutter/packages#10119)
2025-10-21 [email protected] [go_router_builder] expand supported
versions of analyzer, build and source_gen (flutter/packages#10078)
2025-10-20 [email protected] Roll Flutter from
891d7d5 to 2d34167 (18 revisions) (flutter/packages#10268)

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 [email protected] 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants