Skip to content

[camera_android_camerax] Preview rotation is incorrect for naturally landscape-oriented devices #164493

@camsim99

Description

@camsim99

The preview rotation for devices that are naturally landscape-oriented is incorrect, as the plugin seems to assume that the device is naturally oriented in portrait up. See #154241 (comment) for an example of this behavior (cc @kylehayes, the reporter).

If this assumption is baked into the CameraPreview widget, then the logic used to correct the camera preview will need to be modified to account for it; otherwise, if it is baked in the camera preview rotation logic itself, it needs to be corrected.

I believe this has been broken as long as the camera_android_camerax plugin has lived (#149177; I thought I fixed it previously, but that fix has since been re-written and a new one will need to be implemented).

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listp: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.platform-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