Merge pull request #118 from flixcoo/bug/117-medal-icon-in-roundview

Medal icon in RoundView
This commit is contained in:
2025-07-16 14:33:29 +02:00
committed by GitHub
2 changed files with 5 additions and 3 deletions

View File

@@ -182,6 +182,8 @@ class _RoundViewState extends State<RoundView> {
itemBuilder: (context, index) {
final originalIndex = originalIndices[index];
final name = rotatedPlayers[index];
bool shouldShowMedal =
index == 0 && widget.roundNumber > 1;
return Padding(
padding: const EdgeInsets.symmetric(
vertical: 10, horizontal: 20),
@@ -197,11 +199,11 @@ class _RoundViewState extends State<RoundView> {
overflow: TextOverflow.ellipsis,
),
Visibility(
visible: index == 0,
visible: shouldShowMedal,
child: const SizedBox(width: 10),
),
Visibility(
visible: index == 0,
visible: shouldShowMedal,
child: const Icon(FontAwesomeIcons.medal,
size: 15))
]))

View File

@@ -2,7 +2,7 @@ name: cabo_counter
description: "Mobile app for the card game Cabo"
publish_to: 'none'
version: 0.4.7+506
version: 0.4.7+507
environment:
sdk: ^3.5.4