Skip to content

Commit

Permalink
feat: update BalancedTeamScreen
Browse files Browse the repository at this point in the history
  • Loading branch information
janssenbatista committed Apr 17, 2024
1 parent 4edfa04 commit 197b161
Showing 1 changed file with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Brush
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import br.com.alexf.boraprofut.R
Expand Down Expand Up @@ -98,27 +97,29 @@ fun BalancedTeamsScreen(
)
}
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 197b161

Please sign in to comment.