fluttercandies / extended_image

A powerful official extension library of image, which support placeholder(loading)/ failed state, cache network, zoom pan image, photo view, slide out page, editor(crop,rotate,flip), paint custom etc.
https://fluttercandies.github.io/extended_image/
MIT License
1.93k stars 504 forks source link

Use before/afterPaintImage callbacks in editing too #662

Open lolocomotive opened 8 months ago

lolocomotive commented 8 months ago

For some reason these seem to be disable whe the edit mode is enabled. I couldn't find any mention of this anywhere so I assume this is a bug/not intentional behaviour. Seems to work fine.

zmtzawqlp commented 8 months ago

What are your requirements about it? Can you illustrate with a scenario?

lolocomotive commented 8 months ago

I use this to draw a checkerboard background behind the image to show transparency. It works just fine when the mode is none or gesture, but as soon as the mode is edit, the callbacks are ignored. Adding the 2 lines of code seems to add the functionality back without any side effects although I haven't tested thouroughly.