Keep container on top after dragging

I am migrating game from windows phone to flutter card game. I cannot find the way how to keep the card on the top after dragging.

Stack order is too complex and problematic for such simple action and would involve 4 player active, not active cards, cards on the table, combination sets re-arrangement :( In Windows phone there was a Rectangle with ZIndex which i could set to any rectangle on the screen.

I am missing something similar in flutter. I cannot believe that stack order is only way to solve this because it would make any game development impossible.

I am not using any game engine (maybe thats a problem) but i feel like i do not need it because it is not game-loop based game it is event based - click, drag etc. Do you know any solution how i can achieve that?



Read more here: https://stackoverflow.com/questions/64893339/keep-container-on-top-after-dragging

Content Attribution

This content was originally published by Vytautas Pranskunas at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: