fix: sorting problems
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 44s
Pull Request Pipeline / lint (pull_request) Successful in 51s

This commit is contained in:
2026-05-22 15:05:43 +02:00
parent 96037e6062
commit 47829a6955
4 changed files with 7 additions and 5 deletions

View File

@@ -208,7 +208,6 @@ class _MatchResultViewState extends State<MatchResultView> {
void initializeAsTeamMatch() {
allTeams = [...(widget.match.teams ?? [])];
allTeams.sort((a, b) => a.name.compareTo(b.name));
controller = List.generate(
allTeams.length,
@@ -508,7 +507,7 @@ class _MatchResultViewState extends State<MatchResultView> {
),
),
),
if (team.members.length > 4)
if (team.members.length > showingPlayerAmount)
Container(
padding: const EdgeInsets.symmetric(
vertical: 4,