Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Orientation] Landscape orientation width not correct #1334

Open
juliansteenbakker opened this issue Feb 18, 2025 · 3 comments
Open

[Orientation] Landscape orientation width not correct #1334

juliansteenbakker opened this issue Feb 18, 2025 · 3 comments
Assignees
Labels
android Platform android bug Something isn't working

Comments

@juliansteenbakker
Copy link
Owner

With the latest code i am experiencing issues with the width of the preview in landscape mode. The image seems squashed.

Tested with Android 14 and 10, using samsung s24 ultra and pixel 4a 5G

@juliansteenbakker juliansteenbakker added android Platform android bug Something isn't working labels Feb 18, 2025
@navaronbracke
Copy link
Collaborator

I did notice this when implementing the Impeller migration. Presumably we will need an AspectRatio widget to correct it in landscape? The camera plugin does something similar.

@navaronbracke
Copy link
Collaborator

navaronbracke commented Feb 18, 2025

And I think that piece of code also has a possible fix for the rotation issue on pre-surface producer. (It applies a manual rotation with a RotatedBox, which is reverted with the formula for camera_android_camerax when running with SurfaceProducer)

Image

@navaronbracke navaronbracke self-assigned this Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Platform android bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants