TransformingLazyColumnItemScope

@TransformingLazyColumnScopeMarker
sealed interface TransformingLazyColumnItemScope


Receiver scope being used by the item content parameter of TransformingLazyColumn.

Summary

Public functions

Modifier
Modifier.transformedHeight(
    heightProvider: (measuredHeight: Int, scrollProgress: TransformingLazyColumnItemScrollProgress) -> Int
)

Applies the new height of the item depending on its scroll progress and measured height.

Public properties

TransformingLazyColumnItemScrollProgress?

Scroll progress of the item before height transformation is applied using Modifier.transformedHeight.

TransformingLazyColumnItemScrollProgress?

Scroll progress of the item before height transformation is applied using Modifier.transformedHeight.

Public functions

fun Modifier.transformedHeight(
    heightProvider: (measuredHeight: Int, scrollProgress: TransformingLazyColumnItemScrollProgress) -> Int
): Modifier

Applies the new height of the item depending on its scroll progress and measured height.

Parameters
heightProvider: (measuredHeight: Int, scrollProgress: TransformingLazyColumnItemScrollProgress) -> Int

The transformation to be applied. The first parameter is the height of the item returned during measurement. The second parameter is the scroll progress of the item. This lambda should not read from any state values.

Public properties

val GraphicsLayerScope.scrollProgressTransformingLazyColumnItemScrollProgress?

Scroll progress of the item before height transformation is applied using Modifier.transformedHeight. Is null for the item that is off screen.

val DrawScope.scrollProgressTransformingLazyColumnItemScrollProgress?

Scroll progress of the item before height transformation is applied using Modifier.transformedHeight. Is null for the item that is off screen.