[demo-compose] Even out the weight of Prev/Play/Next buttons

Despite the size being specified as 80 dp, it's important that all the buttons are exactly 1/3 of the Row, even if it means ignoring the size.

PiperOrigin-RevId: 751343084
This commit is contained in:
jbibik 2025-04-25 03:07:51 -07:00 committed by Copybara-Service
parent dae5ebb820
commit f1afa17bf6

View File

@ -44,8 +44,8 @@ internal fun MinimalControls(player: Player, modifier: Modifier = Modifier) {
horizontalArrangement = Arrangement.SpaceEvenly,
verticalAlignment = Alignment.CenterVertically,
) {
PreviousButton(player, modifierForIconButton)
PlayPauseButton(player, modifierForIconButton)
NextButton(player, modifierForIconButton)
PreviousButton(player, Modifier.weight(1f).then(modifierForIconButton))
PlayPauseButton(player, Modifier.weight(1f).then(modifierForIconButton))
NextButton(player, Modifier.weight(1f).then(modifierForIconButton))
}
}