# ScalingLazyListItemScope

Artifact: [androidx.wear.compose:compose-material](https://developer.android.com/jetpack/androidx/releases/wear-compose) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/material/ScalingLazyListItemScope.kt+class:androidx.wear.compose.material.ScalingLazyListItemScope) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.2.0)


```
@ScalingLazyScopeMarker
sealed interface ScalingLazyListItemScope
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This interface is deprecated.**   
> Was moved to androidx.wear.compose.foundation.lazy package. Please use it instead

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

## Summary

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.[fillParentMaxHeight](https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListItemScope#(androidx.compose.ui.Modifier).fillParentMaxHeight(kotlin.Float))( fraction: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0, to = 1.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html )` **This function is deprecated.** Was moved to androidx.wear.compose.foundation.lazy package. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.[fillParentMaxSize](https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListItemScope#(androidx.compose.ui.Modifier).fillParentMaxSize(kotlin.Float))( fraction: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0, to = 1.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html )` **This function is deprecated.** Was moved to androidx.wear.compose.foundation.lazy package. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.[fillParentMaxWidth](https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListItemScope#(androidx.compose.ui.Modifier).fillParentMaxWidth(kotlin.Float))( fraction: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0, to = 1.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html )` **This function is deprecated.** Was moved to androidx.wear.compose.foundation.lazy package. |

## Public functions

### Modifier.fillParentMaxHeight

Artifact: [androidx.wear.compose:compose-material](https://developer.android.com/jetpack/androidx/releases/wear-compose) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/material/ScalingLazyListItemScope.kt+function:fillParentMaxHeight) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.2.0)

```
fun Modifier.[fillParentMaxHeight](https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListItemScope#(androidx.compose.ui.Modifier).fillParentMaxHeight(kotlin.Float))(
    fraction: @FloatRange(from = 0.0, to = 1.0) Float = 1.0f
): Modifier
```

> [!CAUTION]
> **This function is deprecated.**   
> Was moved to androidx.wear.compose.foundation.lazy package. Please use it instead

Have the content fill the `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Constraints#maxHeight()` of the incoming measurement constraints by setting the `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Constraints#minHeight()` to be equal to the `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Constraints#maxHeight()` multiplied by `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListItemScope#(androidx.compose.ui.Modifier).fillParentMaxHeight(kotlin.Float)`. Note that, by default, the `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListItemScope#(androidx.compose.ui.Modifier).fillParentMaxHeight(kotlin.Float)` is 1, so the modifier will make the content fill the whole parent height. `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListItemScope#(androidx.compose.ui.Modifier).fillParentMaxHeight(kotlin.Float)` must be between `0` and `1`.

Regular `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/fillMaxHeight.modifier#(androidx.compose.ui.Modifier).fillMaxHeight(kotlin.Float)` can't work inside the scrolling vertically layouts as the items are measured with `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Constraints#Infinity()` as the constraints for the main axis.

### Modifier.fillParentMaxSize

Artifact: [androidx.wear.compose:compose-material](https://developer.android.com/jetpack/androidx/releases/wear-compose) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/material/ScalingLazyListItemScope.kt+function:fillParentMaxSize) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.2.0)

```
fun Modifier.[fillParentMaxSize](https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListItemScope#(androidx.compose.ui.Modifier).fillParentMaxSize(kotlin.Float))(
    fraction: @FloatRange(from = 0.0, to = 1.0) Float = 1.0f
): Modifier
```

> [!CAUTION]
> **This function is deprecated.**   
> Was moved to androidx.wear.compose.foundation.lazy package. Please use it instead

Have the content fill the `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Constraints#maxWidth()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Constraints#maxHeight()` of the parent measurement constraints by setting the `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Constraints#minWidth()` to be equal to the `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Constraints#maxWidth()` multiplied by `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListItemScope#(androidx.compose.ui.Modifier).fillParentMaxSize(kotlin.Float)` and the `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Constraints#minHeight()` to be equal to the `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Constraints#maxHeight()` multiplied by `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListItemScope#(androidx.compose.ui.Modifier).fillParentMaxSize(kotlin.Float)`. Note that, by default, the `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListItemScope#(androidx.compose.ui.Modifier).fillParentMaxSize(kotlin.Float)` is 1, so the modifier will make the content fill the whole available space. `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListItemScope#(androidx.compose.ui.Modifier).fillParentMaxSize(kotlin.Float)` must be between `0` and `1`.

Regular `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/fillMaxSize.modifier#(androidx.compose.ui.Modifier).fillMaxSize(kotlin.Float)` can't work inside the scrolling layouts as the items are measured with `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Constraints#Infinity()` as the constraints for the main axis.

### Modifier.fillParentMaxWidth

Artifact: [androidx.wear.compose:compose-material](https://developer.android.com/jetpack/androidx/releases/wear-compose) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/material/ScalingLazyListItemScope.kt+function:fillParentMaxWidth) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.0.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.2.0)

```
fun Modifier.[fillParentMaxWidth](https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListItemScope#(androidx.compose.ui.Modifier).fillParentMaxWidth(kotlin.Float))(
    fraction: @FloatRange(from = 0.0, to = 1.0) Float = 1.0f
): Modifier
```

> [!CAUTION]
> **This function is deprecated.**   
> Was moved to androidx.wear.compose.foundation.lazy package. Please use it instead

Have the content fill the `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Constraints#maxWidth()` of the parent measurement constraints by setting the `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Constraints#minWidth()` to be equal to the `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Constraints#maxWidth()` multiplied by `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListItemScope#(androidx.compose.ui.Modifier).fillParentMaxWidth(kotlin.Float)`. Note that, by default, the `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListItemScope#(androidx.compose.ui.Modifier).fillParentMaxWidth(kotlin.Float)` is 1, so the modifier will make the content fill the whole parent width. `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/ScalingLazyListItemScope#(androidx.compose.ui.Modifier).fillParentMaxWidth(kotlin.Float)` must be between `0` and `1`.

Regular `https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/fillMaxWidth.modifier#(androidx.compose.ui.Modifier).fillMaxWidth(kotlin.Float)` can't work inside the scrolling horizontally layouts as the items are measured with `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Constraints#Infinity()` as the constraints for the main axis.