androidx.compose.foundation.layout
widthIn
Function · from org.jetbrains.compose.foundation:foundation-layout:1.12.2
No hand-written docs yet.
Constrain the width of the content to be between mindp and maxdp as permitted by the incoming measurement Constraints. If the incoming constraints are more restrictive the requested size will obey the incoming constraints and attempt to be as close as possible to the preferred size.
Parameters
fun Modifier.widthIn(
min: Dp = Dp.Unspecified,
max: Dp = Dp.Unspecified,
)
min: DpOptional
min: DpOptionalDefault: Dp.Unspecified
Not described.
max: DpOptional
max: DpOptionalDefault: Dp.Unspecified
Not described.
Library docs
Constrain the width of the content to be between mindp and maxdp as permitted by the incoming
measurement Constraints. If the incoming constraints are more restrictive the requested size
will obey the incoming constraints and attempt to be as close as possible to the preferred size.