Gabriel
11/21/2020, 8:23 PMColumn(modifier = Modifier.fillMaxSize()
Thread in Slack ConversationAdriano Celentano
11/21/2020, 8:39 PMGabriel
11/21/2020, 8:40 PMval 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)
}
}
Gabriel
11/21/2020, 8:41 PMAlex Barcelo
11/21/2020, 8:48 PMGabriel
11/21/2020, 8:50 PMYann Badoual
11/21/2020, 9:23 PMColumn(Modifier.preferredWidth(IntrinsicSize.Max)) {
ButtonText(fillMaxSize)
ButtonText(fillMaxSize)
}
Yann Badoual
11/21/2020, 9:23 PMIntrinsicSize.Max
Gabriel
11/21/2020, 9:26 PMYann Badoual
11/21/2020, 9:31 PMRow(
modifier = Modifier
.fillMaxWidth()
.preferredHeight(IntrinsicSize.Max)
Use this in the row
and this on the column:
fillMaxHeight()
Yann Badoual
11/21/2020, 9:31 PMGabriel
11/21/2020, 9:40 PM