Issue
A friend of mind started a flutter project. He asked me if it is possible to set a button like the floating button of whatsapp and which will be movable by the user.
Solution
Here you need to code a container as a button and add a custom animation
if that is the question you’re asking.
If not What you are looking for is a Draggable widget
. You can then handle the translation using onDraggableCanceled which is passed and offset that you can be used to update the placement – https://flutter.dev/docs/cookbook/effects/drag-a-widget
And there is a couple of animation
we can do for a button
in a flutter.
Refer to this – https://medium.com/flutter-community/animated-send-button-in-flutter-94c1834268b1
Answered By – Sachin Liyanage
Answer Checked By – Willingham (FlutterFixes Volunteer)