Skip to content

Conversation

@dasyad00
Copy link
Contributor

Resolves flutter/flutter#147545

Pre-Review Checklist

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

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

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 updates the availableCameras method to use the camera ID from Camera2CameraInfo.getCameraId as the camera name, which is a more stable identifier. The implementation change is correct, and the corresponding updates to the changelog, pubspec, and tests are mostly good. I've found one issue in the tests where a shared mock instance is being re-stubbed in a loop, which could lead to flaky tests. I've provided a suggestion to fix this by creating a new mock instance for each call.

Copy link
Contributor

@camsim99 camsim99 left a comment

Choose a reason for hiding this comment

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

LGTM thanks for taking this on :)

@camsim99 camsim99 requested a review from jesswrd January 12, 2026 16:22
@camsim99
Copy link
Contributor

@jesswrd do you mind giving this a second review?

@jesswrd jesswrd added the autosubmit Merge PR when tree becomes green via auto submit App label Jan 12, 2026
@auto-submit auto-submit bot merged commit 9631ecf into flutter:main Jan 12, 2026
81 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 13, 2026
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Jan 13, 2026
flutter/packages@e57e7f4...eb9e1dc

2026-01-13 [email protected] [google_maps_flutter] Migrate iOS
heatmaps to Pigeon (flutter/packages#10754)
2026-01-13 [email protected] Set Gemini Code Assist include_drafts to
false (flutter/packages#10765)
2026-01-12 [email protected] [google_fonts]
Update the font generator to exclude variable font entries when a static
entry of the same weight and style exists (flutter/packages#10739)
2026-01-12 [email protected] [camera_android_camerax] get camera name
from Camera2CameraInfo.getCameraId in availableCameras
(flutter/packages#10775)
2026-01-12 49699333+dependabot[bot]@users.noreply.github.com Bump
peter-evans/create-pull-request from 7.0.0 to 8.0.0 in the
all-github-actions group (flutter/packages#10773)
2026-01-12 [email protected] Roll Flutter from
3134be8 to d81cd3e (11 revisions) (flutter/packages#10779)

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: camera

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[camera_android_camerax] Modify availableCameras to set camera name to Camera2CameraInfo.getCameraId

3 participants