← Back to Foundation Layout
preferredSizeIn
Modifier
in
Foundation Layout
. Since 0.1.0-dev15Overview
Examples
Community Notes
Constrain the width of the content to be between minWidthdp and maxWidthdp and the height of the content to be between minHeight and maxHeight 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.
Overloads
preferredSizeIn
fun Modifier.preferredSizeIn(
minWidth: Dp = Dp.Unspecified,
minHeight: Dp = Dp.Unspecified,
maxWidth: Dp = Dp.Unspecified,
maxHeight: Dp = Dp.Unspecified
)
Next ComponentAlignmentLineOffset →