hm21 / pro_image_editor

The pro_image_editor is a Flutter widget designed for image editing within your application. It provides a flexible and convenient way to integrate image editing capabilities into your Flutter project.
https://hm21.github.io/pro_image_editor/
BSD 3-Clause "New" or "Revised" License
144 stars 77 forks source link

[Feature request] Ability to zoom out #266

Open barchinvictor opened 1 week ago

barchinvictor commented 1 week ago

Platforms

Web

Description

Thank you for this awesome package ❤️

Currently editorIsZoomable allows you to zoom in on the canvas. But you can't zoom out because the canvas stretches to the full height of the screen. I'd like to be able to zoom out like many editors do.

Thanks in advance

Why

No response

hm21 commented 1 week ago

Thank you for your feature request.

The editorMinScale option already allows scaling out, but I realized I had omitted the boundaryMargin property from the InteractiveViewer, which is necessary for proper functionality. However, I just released version 6.1.4, which should resolve the issue. You can also refer to this example for guidance on how to configure all the settings for zooming in and out.

barchinvictor commented 1 week ago

@hm21 Thanks for the update!

Today I found a small bug. If you enlarge the canvas, the layer scaling does not work correctly. More clearly in the video https://www.youtube.com/watch?v=FmnAFqyzGec

hm21 commented 1 week ago

Thank you for sharing the video that demonstrates the issue. I will address it as soon as I have time.