Function

widthIn

Constrain the width of the content to be between mindp and maxdp as permitted by the incoming measurement constraints.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

widthIn

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

Constrain the width of the content to be between mindp and maxdp 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

min The minimum width.
max The maximum width.