Function

fillMaxDepth

Have the content fill (possibly only partially) the VolumeConstraints.maxDepth of the incoming measurement constraints, by setting the minimum depth and the maximum depth to be equal to the maximum depth multiplied by fraction.

fillMaxDepth

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

Have the content fill (possibly only partially) the VolumeConstraints.maxDepth of the incoming measurement constraints, by setting the minimum depth and the maximum depth to be equal to the maximum depth multiplied by fraction. Note that, by default, the fraction is 1, so the modifier will make the content fill the whole available depth. If the incoming maximum depth is VolumeConstraints.INFINITY this modifier will have no effect.

Parameters

fraction The fraction of the maximum height to use, between 0 and 1, inclusive.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: