androidx.compose.foundation.layout
requiredWidthIn
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. If the content chooses a size that does not satisfy the incoming Constraints, the parent layout will be reported a size coerced in the Constraints, and the position of the content will be automatically offset to be centered on the space assigned to the child by the parent layout under the assumption that Constraints were respected.
Parameters
fun Modifier.requiredWidthIn(
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. If the content chooses a
size that does not satisfy the incoming Constraints, the parent layout will be reported a size
coerced in the Constraints, and the position of the content will be automatically offset to be
centered on the space assigned to the child by the parent layout under the assumption that
Constraints were respected.