floatingItemList

fun LazyListScope.floatingItemList(count: Int, title: String? = null, key: (index: Int) -> Any? = null, contentType: (index: Int) -> Any? = { null }, itemContent: @Composable LazyItemScope.(index: Int) -> Unit)

Adds a lazy floating list of items into an outer LazyColumn.

Each item in the list is lazily composed as it enters the viewport. The first item has rounded top corners, the last item has rounded bottom corners, and intermediate items have square corners.

Parameters

count

the number of items in this list.

title

optional title to show above the list.

key

a factory of stable and unique keys for each item.

contentType

a factory of content types for each item.

itemContent

the content for each item at index.


fun <T> LazyListScope.floatingItemList(items: List<T>, title: String? = null, key: (item: T) -> Any? = null, contentType: (item: T) -> Any? = { null }, itemContent: @Composable LazyItemScope.(item: T) -> Unit)

Adds a lazy floating list of items into an outer LazyColumn.

Parameters

items

the data list.

title

optional title to show above the list.

key

a factory of stable and unique keys for each item.

contentType

a factory of content types for each item.

itemContent

the content for each item.