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 widgets in the same view #9

Open ivtod opened 4 years ago

ivtod commented 4 years ago

Hi,

first of all, great flutter package! :) Is it possible to add multiple MatrixGestureDetector widgets inside the same view? For example as Positioned inside a Stack and let every widget handle its own gestures (move, pinch to zoom, rotate, ...) Something like this: https://stackoverflow.com/questions/60803481/move-zoom-and-resize-positioned-widget-inside-stack-widget-in-flutter

Can you please provide an example?

dmvvilela commented 4 years ago

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

Answered there.

R1Snake commented 4 years ago

Don´t set a background color for your widgets. If you do this, the hitbox is bigger than it should

thetarunkochar commented 3 years ago

But how can we rotate, scale and move these 3 containers on screen?