Skip to content

Commit

Permalink
Update sortable example 5
Browse files Browse the repository at this point in the history
  • Loading branch information
sunarya-thito committed Dec 21, 2024
1 parent b53520f commit 2e66228
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ class _SortableExample5State extends State<SortableExample5> {
Sortable<String>(
key: ValueKey(i),
data: names[i],
// sortable must be disabled to allow the drag handle to work
// we only want user to drag the item from the handle,
// so we disable the drag on the item itself
enabled: false,
onAcceptTop: (value) {
setState(() {
Expand Down

0 comments on commit 2e66228

Please sign in to comment.