Skip to content

Commit

Permalink
feat: update RandomTeamsScreen
Browse files Browse the repository at this point in the history
  • Loading branch information
janssenbatista committed Apr 17, 2024
1 parent 197b161 commit b17555b
Showing 1 changed file with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,27 +98,29 @@ fun RandomTeamsScreen(
)
}
Column {
team.players.forEach { p ->
team.players.forEach { player ->
Row(
Modifier.fillMaxWidth(),
horizontalArrangement = Arrangement.SpaceBetween
) {
Text(
text = p.name,
text = "${player.name} ${if (player.isGoalKeeper) "(G)" else ""}",
Modifier.padding(horizontal = 16.dp, vertical = 8.dp),
style = LocalTextStyle.current.copy(
fontSize = 20.sp,
fontWeight = FontWeight.Bold
)
)
Text(
text = "${p.level}",
Modifier.padding(horizontal = 16.dp, vertical = 8.dp),
style = LocalTextStyle.current.copy(
fontSize = 20.sp,
fontWeight = FontWeight.Bold
if (!player.isGoalKeeper) {
Text(
text = "${player.level}",
Modifier.padding(horizontal = 16.dp, vertical = 8.dp),
style = LocalTextStyle.current.copy(
fontSize = 20.sp,
fontWeight = FontWeight.Bold
)
)
)
}
}
}
}
Expand Down

0 comments on commit b17555b

Please sign in to comment.