CamerAwesome icon indicating copy to clipboard operation
CamerAwesome copied to clipboard

Preview always shows topside of the footage when given smaller height

Open FatihGeylan opened this issue 5 months ago • 1 comments

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)

FatihGeylan avatar Sep 18 '24 16:09 FatihGeylan