yellowQ-software / yellowQ-Flutter-Image-Painter

Flutter package for painting on images
MIT License
106 stars 117 forks source link

Hi, is there a way to change the zoom behaviour? #39

Closed SmearyQuill closed 1 year ago

SmearyQuill commented 2 years ago

When a horizontal image is loaded to the painter the image is really tinny, and when zoomed it doesn't changes it size, the zoom remains inside the area of the image.

Is there a way to change this behavior so the image scales using all the available space, maybe adding a new paint mode to allow crop?

thank you.

SmearyQuill commented 2 years ago

In more details, when i load a horizontal image looks like this, but i want to be able to zoom in and out using the whole dark area, i partially managed to do this by removing a RectClip that was above the ImagePainterTransformer but the gesture area it's still constrained to the area that the original image was using and that messes up the gestures overall photo1659119953 Here you can see a tiny difference, it's the same image just zoomed in, the image becomes larger, i'll try to make this work in the mean time photo1659119953 (1)

lively-bigyan commented 1 year ago

That's part of the reason why the package uses a confined space. When we give InteractiveViewer an unbounded space to work, it messes up the coordinate calculation. Also, there isn't enough demand for the feature to spend time on it.