← Back to Foundation Layout
defaultMinSizeConstraints
Modifier
in
Foundation Layout
. Since 0.1.0-dev15Overview
Examples
Community Notes
Constrain the size of the wrapped layout only when it would be otherwise unconstrained: the minWidth and minHeight constraints are only applied when the incoming corresponding constraint is 0
. The modifier can be used, for example, to define a default min size of a component, while still allowing it to be overidden with smaller min sizes across usages.
Overloads
defaultMinSizeConstraints
fun Modifier.defaultMinSizeConstraints(
minWidth: Dp = Dp.Unspecified,
minHeight: Dp = Dp.Unspecified
)
Next ComponentAlignmentLineOffset →