Skip to content

[Camera Plugin] How to keep device orientation and camera orientation in sync  #16587

@jzillmann

Description

@jzillmann

I'm trying the camera plugin v0.1.2 with the usage code from its example: https://github.com/flutter/plugins/blob/master/packages/camera/example/lib/main.dart

Now the problem i'm having.. If i change the device orientation, the camera preview doesn't follow so the shown picture are rotated to the left/right.

I can improve on this behaviour by disabling device orientation change through setting SystemChrome.setPreferredOrientations
Now i always see the picture in correct orientation, but things like the app menu bar don't change and also the picture looking stretched in portrait mode.

So is there a way or is it planned to control camera rotation/orientation !?

Metadata

Metadata

Assignees

Labels

p: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions