Skip to content

[camera_android_camerax] Fix preview rotation when capture orientation is locked #163857

@camsim99

Description

@camsim99

flutter/packages#8629 will fix the preview rotation when the camera plugin is being used without a locked capture orientation. However, when the capture orientation is locked, it may impact the orientation of camera captures and video recording, so the CameraPreview widget will be rotated according to it instead of the device orientation as the aforementioned PR assumes, see source.

flutter/packages#8629 should be followed up with a fix to modify the preview rotation calculation to account for that CameraPreview rotation regardless of whether or not the capture orientation is locked.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listp: cameraThe camera pluginplatform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions