Added empty build for teams & player in match tile / detail view
All checks were successful
Pull Request Pipeline / lint (pull_request) Successful in 46s
Pull Request Pipeline / test (pull_request) Successful in 47s
Pull Request Pipeline / localizations (pull_request) Successful in 27s

This commit is contained in:
2026-05-23 16:12:58 +02:00
parent 6d17539af2
commit 99c3c3c257
7 changed files with 77 additions and 24 deletions

View File

@@ -221,7 +221,9 @@ class _MatchTileState extends State<MatchTile> {
const SizedBox(height: 12),
],
if (match.teams != null && match.teams!.isNotEmpty) ...[
if (match.teams != null &&
match.teams!.isNotEmpty &&
match.isTeamMatch) ...[
// Team display
Text(
loc.teams,
@@ -275,10 +277,17 @@ class _MatchTileState extends State<MatchTile> {
return TextIconTile(
text: player.name,
suffixText: getNameCountText(player),
iconEnabled: false,
);
}).toList(),
),
] else ...[
Text(
loc.no_players_available,
style: const TextStyle(
fontSize: 14,
color: CustomTheme.hintColor,
),
),
],
],
),