David Dupraz
07/17/2021, 7:17 PMDavid Dupraz
07/17/2021, 7:18 PMColumn(modifier = Modifier.fillMaxHeight(),
horizontalAlignment = Alignment.CenterHorizontally,){
Button(modifier = Modifier.height(50.dp).padding(bottom = 5.dp),
enabled = true,
onClick = {
deckGUI.saveDeckLocally()
onSelect(deckGUI.deck.value)
}) {
Text(
text = "Select and play !",
color = Color.White,
style = buttonFont
)
}
Row(verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.Center){
Text(text = "Play against IA ?",
style = miniFont)
Switch(checked = false,
onCheckedChange = {})
}
}
dbaelz
07/17/2021, 8:59 PMSpacer
between the Button and the Row or add some padding to the Row to separate them more
• Full Text: Add padding or Spacer in the row between the Text and the Switch Composable.