redDwarf
redDwarf

Reputation: 398

Flutter : click-and-drag items in a list

i'm searching a widget to display a list of items and, with an animation, i would like to move the order of the items in the list with click-and-drag.

enter image description here

Upvotes: 0

Views: 439

Answers (2)

pmatatias
pmatatias

Reputation: 4404

Its already provide by flutter. You can create withour any addtional package with ReorderableListView .

documentation:

A list whose items the user can interactively reorder by dragging.

 ReorderableListView(
    buildDefaultDragHandles: false,
    onReorder:(int oldIndex, int newIndex){}
     children: []

Upvotes: 1

Kingshuk Saha
Kingshuk Saha

Reputation: 154

You can use the ReorderableListView Widget to this. Here is a tutorial from Flutter Devs!

Upvotes: 1

Related Questions