sizeIn
Android
public fun SubspaceModifier.sizeIn(
minWidth: Dp = Dp.Unspecified,
maxWidth: Dp = Dp.Unspecified,
minHeight: Dp = Dp.Unspecified,
maxHeight: Dp = Dp.Unspecified,
minDepth: Dp = Dp.Unspecified,
maxDepth: Dp = Dp.Unspecified,
): SubspaceModifier
Constrain the size of the content to be between min and max dp 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
| minWidth | The minimum width. |
| maxWidth | The maximum width. |
| minHeight | The minimum height. |
| maxHeight | The maximum height. |
| minDepth | The minimum depth. |
| maxDepth | The maximum depth. |