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

width

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

width

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

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

Parameters

width preferred width in Dp.

Last updated: