rename variable

This commit is contained in:
2026-03-20 00:38:26 +01:00
parent 075c930de4
commit 1bce6b4d99

View File

@@ -298,13 +298,13 @@ class _BracketBoard extends StatelessWidget {
// Match cards // Match cards
for (int i = 0; i < cardsInRound; i++) { for (int i = 0; i < cardsInRound; i++) {
final isSieger = round == roundCount - 1; final isTournamentWinner = round == roundCount - 1;
final match = isSieger final match = isTournamentWinner
? _findMatch(round - 1, 0) ? _findMatch(round - 1, 0)
: _findMatch(round, i); : _findMatch(round, i);
// Lock match if its downstream match already has a winner // Lock match if its downstream match already has a winner
final downstreamMatch = (!isSieger && round < roundCount - 2) final downstreamMatch = (!isTournamentWinner && round < roundCount - 2)
? _findMatch(round + 1, i ~/ 2) ? _findMatch(round + 1, i ~/ 2)
: null; : null;
final isLocked = downstreamMatch != null && downstreamMatch.hasWinner; final isLocked = downstreamMatch != null && downstreamMatch.hasWinner;
@@ -318,9 +318,9 @@ class _BracketBoard extends StatelessWidget {
child: _MatchCard( child: _MatchCard(
match: match, match: match,
teamMap: teamMap, teamMap: teamMap,
showWinnerOnly: isSieger, showWinnerOnly: isTournamentWinner,
isLocked: isLocked, isLocked: isLocked,
onTap: isSieger || isLocked onTap: isTournamentWinner || isLocked
? null ? null
: match != null && match.canBePlayed && !match.hasWinner : match != null && match.canBePlayed && !match.hasWinner
? () { ? () {