The weight()
modifier distributes the available space between elements in a given ratio. By removing this modifier, you let the UI elements set their own size (which is most likely fillMaxWidth()
), so the second elements in the Row are not displayed