androidx.compose.foundation.layout
fillMaxSize
Function · from org.jetbrains.compose.foundation:foundation-layout:1.12.2
No hand-written docs yet.
Have the content fill (possibly only partially) the Constraints.maxWidth and Constraints.maxHeight of the incoming measurement constraints, by setting the [minimum width]Constraints.minWidth and the [maximum width]Constraints.maxWidth to be equal to the [maximum width]Constraints.maxWidth multiplied by fraction, as well as the [minimum height]Constraints.minHeight and the [maximum height]Constraints.minHeight to be equal to the [maximum height]Constraints.maxHeight multiplied by fraction. 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 is Constraints.Infinity this modifier will have no effect in that dimension.
Parameters
fun Modifier.fillMaxSize(
fraction: Float = 1f,
)
fraction: FloatOptional
fraction: FloatOptionalDefault: 1f
The fraction of the maximum size to use, between 0 and 1, inclusive. Example usage:
Library docs
Have the content fill (possibly only partially) the Constraints.maxWidth and
Constraints.maxHeight of the incoming measurement constraints, by setting the
[minimum width]Constraints.minWidth and the [maximum width]Constraints.maxWidth to be equal
to the [maximum width]Constraints.maxWidth multiplied by fraction, as well as the
[minimum height]Constraints.minHeight and the [maximum height]Constraints.minHeight to be
equal to the [maximum height]Constraints.maxHeight multiplied by fraction. 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 is Constraints.Infinity this modifier will have
no effect in that dimension.