---
title: "rememberScalingLazyListState"
description: "Creates a [ScalingLazyListState] that is remembered across compositions."
type: "composable"
---

<div class='type'>Composable Function</div>


<a id='references'></a>

<div class='sourceset sourceset-android'>Android</div>


> **Deprecated** Was moved to androidx.wear.compose.foundation.lazy package. Please use it instead

```kotlin
@Composable
public fun rememberScalingLazyListState(
    initialCenterItemIndex: Int = 1,
    initialCenterItemScrollOffset: Int = 0,
): ScalingLazyListState
```


Creates a `ScalingLazyListState` that is remembered across compositions.

#### Parameters

| | |
| --- | --- |
| initialCenterItemIndex | the initial value for `ScalingLazyListState.centerItemIndex`, defaults to 1. This will place the 2nd list item (index == 1) in the center of the viewport and the first item (index == 0) before it. |
| initialCenterItemScrollOffset | the initial value for `ScalingLazyListState.centerItemScrollOffset` in pixels |





