AspectRatioModifierElement

data class AspectRatioModifierElement(val ratio: Float, val matchHeightConstraintsFirst: Boolean) : ModifierElement(source)

Requests a measured width-to-height ratio within the incoming constraints.

Constructors

Link copied to clipboard
constructor(ratio: Float, matchHeightConstraintsFirst: Boolean)

Properties

Link copied to clipboard

whether unconstrained selection should derive width from height before deriving height from width

Link copied to clipboard

positive finite width divided by height