Function

requiredHeightIn

Constrain the height of the content to be between min dp and max dp, disregarding the incoming measurement VolumeConstraints.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

requiredHeightIn

Android
public fun SubspaceModifier.requiredHeightIn(
    min: Dp = Dp.Unspecified,
    max: Dp = Dp.Unspecified,
): SubspaceModifier

Constrain the height of the content to be between min dp and max dp, disregarding the incoming measurement VolumeConstraints.

This is in contrast to SubspaceModifier.heightIn, which respects the parent's constraints. requiredHeightIn will ignore the minHeight and maxHeight from the incoming constraints.

Parameters

min The minimum height.
max The maximum height.