androidx.compose.foundation.layout
sizeIn
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 minWidthdp and maxWidthdp and the height of the content to be between minHeightdp and maxHeightdp 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.sizeIn(
minWidth: Dp = Dp.Unspecified,
minHeight: Dp = Dp.Unspecified,
maxWidth: Dp = Dp.Unspecified,
maxHeight: Dp = Dp.Unspecified,
)
minWidth: DpOptional
minWidth: DpOptionalDefault: Dp.Unspecified
Not described.
minHeight: DpOptional
minHeight: DpOptionalDefault: Dp.Unspecified
Not described.
maxWidth: DpOptional
maxWidth: DpOptionalDefault: Dp.Unspecified
Not described.
maxHeight: DpOptional
maxHeight: DpOptionalDefault: Dp.Unspecified
Not described.
Library docs
Constrain the width of the content to be between minWidthdp and maxWidthdp and the height of
the content to be between minHeightdp and maxHeightdp 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.