From 2033f43843450ae1aa4fa7e96d1b1fd8c976afe5 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 16 Jul 2025 14:32:40 +0200 Subject: [PATCH] Updated bool var --- lib/presentation/views/round_view.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/presentation/views/round_view.dart b/lib/presentation/views/round_view.dart index a7ddde1..9e2b40f 100644 --- a/lib/presentation/views/round_view.dart +++ b/lib/presentation/views/round_view.dart @@ -182,6 +182,8 @@ class _RoundViewState extends State { 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,13 +199,11 @@ class _RoundViewState extends State { overflow: TextOverflow.ellipsis, ), Visibility( - visible: - index == 0 && widget.roundNumber > 1, + visible: shouldShowMedal, child: const SizedBox(width: 10), ), Visibility( - visible: - index == 0 && widget.roundNumber > 1, + visible: shouldShowMedal, child: const Icon(FontAwesomeIcons.medal, size: 15)) ]))