rememberTransformingLazyColumnState
Composable Function
Android
@Composable
public fun rememberTransformingLazyColumnState(
initialAnchorItemIndex: Int = 0,
initialAnchorItemScrollOffset: Int = 0,
): TransformingLazyColumnState
Creates a TransformingLazyColumnState that is remembered across compositions.
Parameters
| initialAnchorItemIndex | the index of an item that is going to be placed in the center of the screen (if possible). This correlates with TransformingLazyColumnState.anchorItemIndex. |
| initialAnchorItemScrollOffset | the offset of an item to be used when placing the item in the center of the screen (if possible). This correlates with TransformingLazyColumnState.anchorItemScrollOffset. |
