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.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: