Relative Content

Tag Archive for androidfluttercamera

Flutter CameraPreview is rotated 90 degrees

I’ve implemented a fairly simple camera page on my app, and I’m running into the issue of the camera preview behaving very strangely. Mainly, the preview seems to rotate the feed of the camera and stretches the content to fit the aspect ratio.
For example, when I’m taking a portrait it’s supposed to be 4:3 aspect ratio, here it’s rotated 90°, 3:4 ratio with everything stretched to fit that wrong aspect ratio.
Here is a picture from the android emulator (also tested on a real device)