Start native apps faster with the Composables CLI ->
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: