https://kotlinlang.org logo
#compose
Title
# compose
m

Mehdi Haghgoo

09/13/2020, 8:27 AM
How to divide available space in a row evenly between items? For a bottomBar for example, the items tend to stick to start by default.
a

andev

09/13/2020, 8:30 AM
Modifier.weight(1) i guess
m

Mehdi Haghgoo

09/13/2020, 4:50 PM
Thanks @andev. It works by using Modifier.weight(1f) for all elements of the Row.
2 Views