Companion

object Companion

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.

Functions

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

Creates constraints for fixed size in both dimensions.

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

Creates constraints for fixed height and unspecified width.

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

Creates constraints for fixed width and unspecified height.