Companion

object Companion

The standard constraints.

Properties

Link copied to clipboard
const val Infinity: Int

A value that maxWidth or maxHeight will be set to when the constraint should be considered infinite. hasBoundedWidth or hasBoundedHeight will be false when maxWidth or maxHeight is Infinity, respectively.

Link copied to clipboard

Constraints that impose nothing: a child takes the extent it asks for on either axis.

Functions

Link copied to clipboard
@Stable
fun fixed(width: Int, height: Int): Constraints

Creates constraints for a fixed size in both dimensions.

Link copied to clipboard
@Stable
fun fixedHeight(height: Int): Constraints

Creates constraints for a fixed height and an unspecified width.

Link copied to clipboard
@Stable
fun fixedWidth(width: Int): Constraints

Creates constraints for a fixed width and an unspecified height.