Compose Unstyled 2.0 is out! Check the official announcement blog ->
Function

height

Declare the preferred size of the content to be exactly height dp along the y dimension of the Composable's local coordinate space.

height

Source set: Android
public fun SubspaceModifier.height(height: Dp): SubspaceModifier

Declare the preferred size of the content to be exactly height dp along the y dimension of the Composable's local coordinate space.

Parameters

height preferred height in Dp.

Last updated: