How to move a Widget in the screen in flutter?

Posted by Jessica Taylor | Updated on

Want to move a Widget in the screen in flutter? What you are looking for is Draggable widget. You can then handle the translation using onDraggableCanceled which is passed and offset that you can be used to update the placement.

Here is a complete example:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers