TransformingLazyColumnLayoutInfo

sealed interface TransformingLazyColumnLayoutInfo


Holds the layout information for a TransformingLazyColumn.

Summary

Public properties

Int

The content padding in pixels applied after the last item in the direction of scrolling.

Int

The content padding in pixels applied before the first item in the direction of scrolling.

open Boolean

True if the direction of scrolling and layout is reversed.

Int

The total count of items passed to TransformingLazyColumn.

IntSize

The size of the viewport in pixels.

List<TransformingLazyColumnVisibleItemInfo>

A list of TransformingLazyColumnVisibleItemInfo objects representing the visible items in the list.

Public properties

afterContentPadding

Added in 1.5.0
val afterContentPaddingInt

The content padding in pixels applied after the last item in the direction of scrolling.

When the last item is visible and uses Modifier.responsiveVerticalPadding, this value is the maximum of the contentPadding parameter provided to the TransformingLazyColumn and the responsive padding calculated for the item.

When the last item is not visible, this value reflects the contentPadding parameter.

beforeContentPadding

Added in 1.5.0
val beforeContentPaddingInt

The content padding in pixels applied before the first item in the direction of scrolling.

When the first item is visible and uses Modifier.responsiveVerticalPadding, this value is the maximum of the contentPadding parameter provided to the TransformingLazyColumn and the responsive padding calculated for the item.

When the first item is not visible, this value reflects the contentPadding parameter.

reverseLayout

Added in 1.6.0-alpha10
open val reverseLayoutBoolean

True if the direction of scrolling and layout is reversed.

totalItemsCount

Added in 1.5.0
val totalItemsCountInt

The total count of items passed to TransformingLazyColumn.

viewportSize

val viewportSizeIntSize

The size of the viewport in pixels.

visibleItems

Added in 1.5.0
val visibleItemsList<TransformingLazyColumnVisibleItemInfo>

A list of TransformingLazyColumnVisibleItemInfo objects representing the visible items in the list.