Composables UI is out: our new component library for Compose Multiplatform ->
Function

layoutItemInfoOf

Returns the TransformingLazyColumnFirstLayoutItemProvider.ItemInfo for the visible item with the given itemKey, aligned to the specified itemEdge.

layoutItemInfoOf

Source set: Android
public fun TransformingLazyColumnState.layoutItemInfoOf(
    itemKey: Any,
    itemEdge: TransformingLazyColumnFirstLayoutItemProvider.ItemEdge,
): TransformingLazyColumnFirstLayoutItemProvider.ItemInfo?

Returns the TransformingLazyColumnFirstLayoutItemProvider.ItemInfo for the visible item with the given itemKey, aligned to the specified itemEdge. Returns null if the item is not currently visible on screen.

This helper is useful when building a custom TransformingLazyColumnFirstLayoutItemProvider that needs to track and stabilize the position of a specific key (e.g. an expanding item) during content size animations.

Parameters

itemKey The unique key of the item to search for.
itemEdge The TransformingLazyColumnFirstLayoutItemProvider.ItemEdge (Start or End) of the item to use for the layout reference.

Last updated: