weight
abstract fun Modifier.weight(@FloatRange(from = 0.0, fromInclusive = false) weight: Float): Modifier
Size the element's width proportional to its weight relative to other weighted sibling elements in the ButtonGroup. The parent will divide the horizontal space remaining after measuring unweighted child elements and distribute it according to this weight.
Parameters
weight
The proportional width to give to this element, as related to the total of all weighted siblings. Must be positive.