← Back to Foundation Layout
preferredHeight
Modifier
in
Foundation Layout
. Since 0.1.0-dev15Overview
Examples
Community Notes
Declare the preferred height of the content to be the same as the min or max intrinsic height of the content. The incoming measurement Constraints may override this value, forcing the content to be either smaller or larger.
See preferredWidth for other options of sizing to intrinsic width. Also see preferredHeight and preferredHeightIn for other options to set the preferred height.
Overloads
preferredHeight
@ExperimentalLayout
fun Modifier.preferredHeight(intrinsicSize: IntrinsicSize)
preferredHeight
fun Modifier.preferredHeight(height: Dp)
Next ComponentAlignmentLineOffset →