Skip to content

Releases: Calvin-LL/Reorderable

v3.0.0

12 Aug 23:37
198f6ec

Choose a tag to compare

Thank you @vipulm7 for PR #95

BREAKING CHANGES

ReorderableItem now required in ReorderableColumn and ReorderableRow

needed this to solve #94

ReorderableColumn(
    list = list,
    onSettle = { fromIndex, toIndex ->
        // Update the list
    },
) { index, item, isDragging ->
    key(item.id) {
        // !!! NEW !!!
        ReorderableItem {
            // Item content

            IconButton(modifier = Modifier.draggableHandle(), /* ... */)
        }
    }
}

New default auto scroll item move behavior in grids

onMove is now called with the item below the dragging item instead of the last visible item when auto scrolling.

To revert to the old behavior, pass scrollMoveMode = ScrollMoveMode.INSERT to rememberReorderableLazy*GridState

For onMove to work as the video below,

change

list = list.toMutableList().apply {
    add(to.index, removeAt(from.index))
}

to

list = list.toMutableList().apply {
    this[to.index] = this[from.index].also {
        this[from.index] = this[to.index]
    }
}
NEW old
A video showing an item being reordered in a LazyGrid with ScrollMoveMode.INSERT A video showing an item being reordered in a LazyGrid with ScrollMoveMode.SWAP

v2.5.1

08 Jun 20:27
2eb3b59

Choose a tag to compare

  • fix onMove being called after onDragStopped #85

v2.5.0

07 Jun 06:31
346ac23

Choose a tag to compare

  • add dragGestureDetector argument to Modifier.draggableHandle thanks to @toasterofbread (#71)

v2.4.3

17 Jan 09:41
728150b

Choose a tag to compare

  • make library compatible with Kotlin 1.9 and Jave 8 (fix #68)

v2.4.2

12 Dec 10:42
2b357ae

Choose a tag to compare

  • lower Kotlin version back to 2.0.21 to prevent breaking (#62)

v2.4.1

12 Dec 09:47
b3ca21d

Choose a tag to compare

  • fix losing drag when dragging large items (#57)

v2.4.0

17 Oct 07:41
a6ef4aa

Choose a tag to compare

  • fix animation when dragging the first item (#4 #26 #32)
  • update to compose-multiplatform 1.7.0

v2.4.0-beta01

12 Sep 21:25
27bec9f

Choose a tag to compare

v2.4.0-beta01 Pre-release
Pre-release

v2.3.3

12 Sep 21:04
31a6476

Choose a tag to compare

v2.3.2

31 Aug 21:17
ae6980e

Choose a tag to compare

  • fix performance issue #47