Interface

BoxWithConstraintsScope

Receiver scope being used by the children parameter of BoxWithConstraints

Source set: Common
interface BoxWithConstraintsScope : BoxScope

Receiver scope being used by the children parameter of BoxWithConstraints

Properties

constraints

Source set: Common
val constraints: Constraints

The constraints given by the parent layout in pixels.

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

minWidth

Source set: Common
val minWidth: Dp

The minimum width in Dp.

maxWidth

Source set: Common
val maxWidth: Dp

The maximum width in Dp.

minHeight

Source set: Common
val minHeight: Dp

The minimum height in Dp.

maxHeight

Source set: Common
val maxHeight: Dp

The maximum height in Dp.

Last updated: