I want to make several containers move freely on the stack like windows on the desktop

47 Views Asked by At

To do this, all the elements in the Stack have GestureDetector, and onPanUpdate made the elements move together in the direction the cursor moves. In the process of onPanDown->onPanEnd->onPanDown->onPanUpdate, the elements are placed on top as desired and move well. But if I go straight through the process of onPanDown->onPanUpdate, other elements will move.

If I do not change the order of the lists in the stack (when I go from onPanDown to onPanUpdate), it works fine. but if I do so, onPanUpdate does not apply to the widget you want. How do we solve this?

-Error video https://youtube.com/shorts/91O5IRPRbrs?feature=share

I changed GestureDetector behaviors and I changed the order of logic in various ways. But it doesn't work.

0

There are 0 best solutions below