pskink / matrix_gesture_detector

A gesture detector mapping translation/rotation/scale gestures to a Matrix4 object.
Other
134 stars 101 forks source link

Use with multiple children, just one at a time! #22

Closed dmvvilela closed 4 years ago

dmvvilela commented 4 years ago

It may be some simple code to fix this, but as for now please read my answer to this topic:

https://stackoverflow.com/questions/60803481/move-zoom-and-resize-positioned-widget-inside-stack-widget-in-flutter/63042850#63042850

I made some changes so that many widgets could have its own matrix transformer.. But if you pinch or do any gesture which touches another children, both of them get transformed.. It should be just the one which is nearest to the pinch movement.

Do you know how can this be achieved?

Btf, awesome lib! Thanks for it!

dmvvilela commented 4 years ago

It was a bug on emulator.. Worked on my phone!

Also, it just moved two of them at the same time, not scale or anything like that.