fillMaxWidth
context(scope: ConstrainedScope)
fun SwingModifier.fillMaxWidth(@FloatRange(from = 0.0,to = 1.0) fraction: Float = 1.0f): SwingModifier
fun SwingModifier.fillMaxWidth(@FloatRange(from = 0.0,
Makes the child occupy fraction of the greatest bounded width its parent offers it. The result is held between the offered minimum and maximum width. An unbounded width is left unchanged.
Return
this modifier with the width fill declared on it.
Parameters
fraction
the fraction of the offered maximum width to occupy.