Skip to content

[camera_android_camerax] Some SurfaceTexture backed camera preview has different rotation based on turn direction #168565

@camsim99

Description

@camsim99

While testing a Samsung Galaxy J7 running API 27, I noticed that depending on the direction I turn the phone to achieve a landscape orientation, the rotation of the camera preview differs. When turning from portrait up, it is correct. When turning from portrait down, it is not correct. I tested a Pixel 3A running API 32, I did not notice this issue.

I did some light debugging and saw that the device orientation is being reported correctly from the platform side, so this seems to be a native Surface issue. TBD if this is a regression.

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 team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions