androidx.compose.foundation.layout
requiredHeight
Function · from org.jetbrains.compose.foundation:foundation-layout:1.12.2
No hand-written docs yet.
Declare the height of the content to be exactly the same as the min or max intrinsic height of the content. The incoming measurement Constraints will not override this value. If the content intrinsic height 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.
With intrinsicSize
fun Modifier.requiredHeight(intrinsicSize: IntrinsicSize)
intrinsicSize: IntrinsicSizeRequired
intrinsicSize: IntrinsicSizeRequiredNot described.
With height
fun Modifier.requiredHeight(height: Dp)
height: DpRequired
height: DpRequiredNot described.
Library docs
Declare the height of the content to be exactly the same as the min or max intrinsic height of
the content. The incoming measurement Constraints will not override this value. If the content
intrinsic height 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.
See width for options of sizing to intrinsic width. See height and heightIn for options to
set the preferred height. See requiredHeight and requiredHeightIn for other options to set
the required height.