BoxWithConstraintsScope


Receiver scope being used by the children parameter of BoxWithConstraints

Summary

Public properties

Constraints

The constraints given by the parent layout in pixels.

Cmn
Dp

The maximum height in Dp.

Cmn
Dp

The maximum width in Dp.

Cmn
Dp

The minimum height in Dp.

Cmn
Dp

The minimum width in Dp.

Cmn

Inherited functions

From androidx.compose.foundation.layout.BoxScope
Modifier
Modifier.align(alignment: Alignment)

Pull the content element to a specific Alignment within the Box.

Cmn
Modifier

Size the element to match the size of the Box after all other content elements have been measured.

Cmn

Public properties

constraints

val constraintsConstraints

The constraints given by the parent layout in pixels.

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

maxHeight

val maxHeightDp

The maximum height in Dp.

See also
constraints

for the values in pixels.

maxWidth

val maxWidthDp

The maximum width in Dp.

See also
constraints

for the values in pixels.

minHeight

val minHeightDp

The minimum height in Dp.

See also
constraints

for the values in pixels.

minWidth

val minWidthDp

The minimum width in Dp.

See also
constraints

for the values in pixels.