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

Preview always shows topside of the footage when given smaller height #517

Open
FatihGeylan opened this issue Sep 18, 2024 · 1 comment
Open

Comments

@FatihGeylan
Copy link

Hi there, I'm trying to implement a custom UI with CamerAwesome.

What I'm trying to do:

When a button is tapped, I want to shrink the preview widget to 1/3 of its height. I accomplished this by using AnimatedSize. Im using "CameraPreviewFit.cover" or "CameraPreviewFit.fitWidth" because in other scenarios there is blank spaces on right and left sides depending on the horizontal alignment.

In short: I just want to crop and show the middle footage on my preview

My problem is:

When the widget shrinks, it always show me the top side of the camera footage.

My goal is:

When the widget shrinks, it must show the middle of the camera footage.

Im sharing some screenshots below in order to address my issue more clearly.

Any help is much appreciated, thanks.
image (2)

image (3)

@sanderrr
Copy link

sanderrr commented Oct 7, 2024

I also get this problem using version 2.1.0, version 2.0.0-dev.1 did not have this problem

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

2 participants