Interface

BoxWithConstraintsScope

Receiver scope being used by the children parameter of BoxWithConstraints

Source set: Common
public interface BoxWithConstraintsScope : BoxScope

Receiver scope being used by the children parameter of BoxWithConstraints

Properties

constraints

Source set: Common
public 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
public val minWidth: Dp

The minimum width in Dp.

maxWidth

Source set: Common
public val maxWidth: Dp

The maximum width in Dp.

minHeight

Source set: Common
public val minHeight: Dp

The minimum height in Dp.

maxHeight

Source set: Common
public val maxHeight: Dp

The maximum height 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: