Gabriel
Column(modifier = Modifier.fillMaxSize()
val image = imageResource(player.avatar) Row(verticalAlignment = Alignment.CenterVertically, modifier = modifier.fillMaxSize().padding(5.dp)) { Image(image, modifier = Modifier.preferredWidth(128.dp).background(color = red900, shape = RoundedCornerShape(topLeft = 10.dp, bottomLeft = 10.dp)).padding(5.dp)) Column(modifier = Modifier.fillMaxSize().background(color = red500, shape = RoundedCornerShape(topRight = 10.dp, bottomRight = 10.dp)).padding(5.dp)) { Text(text = player.name, softWrap = false, fontSize = 28.sp, fontWeight = FontWeight.Bold) Text(text = "Score: ${player.score} Wins: ${player.wins}", fontSize = 16.sp) } }
A modern programming language that makes developers happier.