Google is committed to advancing racial equity for Black communities. See how.

WithConstraintsScope

@Stable interface WithConstraintsScope
androidx.compose.ui.WithConstraintsScope

Receiver scope being used by the children parameter of WithConstraints

Summary

Properties
abstract Constraints

The constraints given by the parent layout in pixels.

abstract Dp

The minimum height in Dp.

abstract Dp

The maximum width in Dp.

abstract Dp

The minimum height in Dp.

abstract Dp

The minimum width in Dp.

Properties

constraints

abstract val constraints: Constraints

The constraints given by the parent layout in pixels.

Use minWidth, maxWidth, minHeight or maxHeight if you need value in Dp.

maxHeight

abstract val maxHeight: Dp

The minimum height in Dp.

See Also

maxWidth

abstract val maxWidth: Dp

The maximum width in Dp.

See Also

minHeight

abstract val minHeight: Dp

The minimum height in Dp.

See Also

minWidth

abstract val minWidth: Dp

The minimum width in Dp.

See Also