Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
data class SwipeDeleteBackgroundStyling(val itemHorizontalPadding: Dp = 0.dp, val itemVerticalPadding: Dp = 0.dp)

Helper class to provide style attributes for the swipe delete background

Functions

Link copied to clipboard
fun <T> Modifier.dragToReorder(item: T, itemList: List<T>, itemHeight: Int, updateSlideState: (item: T, slideState: SlideState) -> Unit, onStartDrag: (currIndex: Int) -> Unit = {}, onDrag: (dy: Float, currIndex: Int, destIndex: Int) -> Unit = { _, _, _ -> }, onStopDrag: (currIndex: Int, destIndex: Int) -> Unit): Modifier

Adds a drag-to-reorder functionality to the given modifier.

Link copied to clipboard
Link copied to clipboard
fun SwipeDeleteBackground(direction: DismissDirection?, @ColorInt deleteBackground: Int, @DrawableRes deleteIcon: Int, styling: SwipeDeleteBackgroundStyling, modifier: Modifier)

Red background with delete icon when swipe to dismiss in the bookmark list screen