sizeIn
fun Modifier.sizeIn(minWidth: Int = 0, minHeight: Int = 0, maxWidth: Int = Int.MAX_VALUE, maxHeight: Int = Int.MAX_VALUE): Modifier(source)
Constrains both axes to independently clamped inclusive ranges. A requested range disjoint from its parent range is pinned to the nearest parent boundary. Int.MAX_VALUE remains an unbounded maximum, and the new behavior is appended inside the existing modifier chain.
Return
this chain with one appended range modifier.
Parameters
minWidth
the non-negative requested minimum width.
minHeight
the non-negative requested minimum height.
maxWidth
the requested maximum width.
maxHeight
the requested maximum height.
Throws
when a value is negative or a minimum exceeds its corresponding maximum.