diff --git a/app/src/main/java/br/com/alexf/boraprofut/features/randomteams/RandomTeamsScreen.kt b/app/src/main/java/br/com/alexf/boraprofut/features/randomteams/RandomTeamsScreen.kt index ddba752..b1f8638 100644 --- a/app/src/main/java/br/com/alexf/boraprofut/features/randomteams/RandomTeamsScreen.kt +++ b/app/src/main/java/br/com/alexf/boraprofut/features/randomteams/RandomTeamsScreen.kt @@ -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 + ) ) - ) + } } } }