setFlexGrow

expect fun setFlexGrow(value: UByte)

Used to make one or more children fill the available space on the track. If more children has grow the available space will be distributed proportionally to the grow values. For example, let's say there is 400 pixels remaining space and 4 objects with grow:

  • A with grow = 1

  • B with grow = 1

  • C with grow = 2

With the above example A and B will have 100 pixel size, and C will have 200 pixel size. Flex grow can be set on a child with setFlexFlow, where the flow parameter needs to be 1 or 0 to disable grow on the child.

Parameters

value

The Flexbox grow policy to use.

actual fun setFlexGrow(value: UByte)
actual fun setFlexGrow(value: UByte)