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

Aspect Ratio Not Applied Correctly in Android Emulator Camera Preview #527

Open
milk0219 opened this issue Oct 25, 2024 · 2 comments
Open

Comments

@milk0219
Copy link

Steps to Reproduce

I used the example code provided in the camerawesome package.
Modified the code to set the camera preview to a 1:1 aspect ratio.
Despite the changes, the preview displayed on the Android emulator does not reflect the adjusted aspect ratio and remains unchanged.

Expected results

When I change the aspect ratio using the ratio button, the camera preview should update to reflect the new 1:1 ratio. Additionally, the photo should be captured exactly as it appears in the preview, maintaining the correct aspect ratio.

Actual results

Even after changing the aspect ratio, the preview does not adjust to the selected 1:1 ratio and stays the same size. Only the captured photo reflects the correct aspect ratio, but the preview itself remains unchanged.

About your device

Android Emulator
Pixel 3 XL (1440x2960)

Your flutter version

Run this in your command line
flutter --version
Flutter 3.22.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision b0850beeb2 (3 months ago) • 2024-07-16 21:43:41 -0700
Engine • revision 235db911ba
Tools • Dart 3.4.4 • DevTools 2.34.3

Android.Emulator.-.Pixel_3_XL_API_35_5554.2024-10-25.09-40-36.mp4
@vithunchandra
Copy link

hello, i have the same problem with you. did you have any solution for this?

@Adm94
Copy link

Adm94 commented Jan 7, 2025

Hi, Same on a Samsung S24 Ultra , the preview doesn't reflect the final picture..
It's a bit problematic..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants