Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[camera_android_camerax] PROOF OF CONCEPT: Use platform views for camera preview#11139

Draft
camsim99 wants to merge 5 commits intoflutter:mainfrom
camsim99:camx_pv
Draft

[camera_android_camerax] PROOF OF CONCEPT: Use platform views for camera preview#11139
camsim99 wants to merge 5 commits intoflutter:mainfrom
camsim99:camx_pv

Conversation

@camsim99
Copy link
Contributor

@camsim99 camsim99 commented Feb 27, 2026

Note

Just some tinkering on flutter/flutter#181687 🛠️ :)

Current state of things:

  • Tested with Pixel 3A, API 32 and works with rotation, backgrounding + resuming app, enabled + disabled impeller
  • There's a bug in the example app that was introduced by 34eec78 I believe; TLDR we need to reinitialize the camera when it changes to make sure the preview is up to date

What I still would like to try:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[camera_android_camerax] Camera Preview is rotating 90° when starting recording with frame callback

1 participant