Function

fillMaxSize

Have the content fill (possibly only partially) the VolumeConstraints.maxWidth, VolumeConstraints.maxHeight, and VolumeConstraints.maxDepth of the incoming measurement constraints.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

fillMaxSize

Android
public fun SubspaceModifier.fillMaxSize(
    @FloatRange(from = 0.0, to = 1.0) fraction: Float = 1f
): SubspaceModifier

Have the content fill (possibly only partially) the VolumeConstraints.maxWidth, VolumeConstraints.maxHeight, and VolumeConstraints.maxDepth of the incoming measurement constraints. See SubspaceModifier.fillMaxWidth, SubspaceModifier.fillMaxHeight, and SubspaceModifier.fillMaxDepth for details. Note that, by default, the fraction is 1, so the modifier will make the content fill the whole available space. If the incoming maximum width or height or depth is VolumeConstraints.Infinity this modifier will have no effect in that dimension.

Parameters

fraction The fraction of the maximum size to use, between 0 and 1, inclusive.