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
94 stars 59 forks source link

[Bug]: Drawing not aligned on image. math wrong somewhere. #141

Closed sgehrman closed 2 months ago

sgehrman commented 2 months ago

Package Version

4.1.0

Flutter Version

3.22

Platforms

Web

How to reproduce?

editing: Screenshot-20240626000939-2696x1296

clicking check mark:

Screenshot-20240626001000-2146x1867

Logs (optional)

No response

Example code (optional)

No response

Device Model (optional)

No response

hm21 commented 2 months ago

I need a sample code how I can reproduce it because in the normal case, as you can see in the demo there is no problem. I think the problem will be the same as in this discuss.

sgehrman commented 2 months ago

That works (option 2) but it looks a bit weird.

I had to add positionRight: 0, positionBottom: 0,

to get it to be on top of my centered dialog.

hm21 commented 2 months ago

Okay, let me know if you want option 1 where you can recalculate the position by yourself depending on your situation, then I will add the feature for you.