Refactoring

This commit is contained in:
Felix Kirchner
2025-04-29 19:32:45 +02:00
parent 7a0959c263
commit 0e09f15c14
4 changed files with 12 additions and 11 deletions

View File

@@ -66,7 +66,7 @@ class _ActiveGameViewState extends State<ActiveGameView> {
),
ListView.builder(
shrinkWrap: true,
itemCount: widget.gameSession.round,
itemCount: widget.gameSession.roundNumber,
itemBuilder: (BuildContext context, int index) {
return Padding(
padding: const EdgeInsets.all(1),
@@ -74,8 +74,8 @@ class _ActiveGameViewState extends State<ActiveGameView> {
title: Text(
'Runde ${index + 1}',
),
trailing: index + 1 != widget.gameSession.round ||
widget.gameSession.finished == true
trailing: index + 1 != widget.gameSession.roundNumber ||
widget.gameSession.isGameFinished == true
? (const Text('\u{2705}',
style: TextStyle(fontSize: 22)))
: const Text('\u{23F3}',