I need help on the implementation of widgets that can be dragged, resized and reordered in a customizable grid of tiles.
Basically i am asking if there is something in flutter that provides the base functionality of the Android Home Launcher where you can drag and drop widgets around.
So in summary:
-
a widget can be dragged around
-
a widget should snap to the tiles on the background.
-
a widget should be resizable, as in it can be a 1×1, 2×2, 3×4, 2×5 etc widget.
-
a widget can be dragged to a slot where another widget already sits, in that case they should change their slots. If thats not possible, a complete reordering of the widget should be done to make space for where the user wants to drop the widget.
I was looking at the draggable class in flutter, but then i got stuck on how to make it snap to the background tiles or how to resize and implement a reordering of all widgets.