Redo seperate visibility
All checks were successful
Pull Request Pipeline / lint (pull_request) Successful in 2m11s
Pull Request Pipeline / test (pull_request) Successful in 2m11s

This commit is contained in:
2025-12-31 19:11:34 +01:00
parent 175a9cb349
commit 2b78617924

View File

@@ -66,38 +66,32 @@ class _StatisticsViewState extends State<StatisticsView> {
winRates.isEmpty, winRates.isEmpty,
replacement: Column( replacement: Column(
children: [ children: [
if (winCounts.isNotEmpty) ...[ StatisticsTile(
StatisticsTile( icon: Icons.sports_score,
icon: Icons.sports_score, title: 'Wins',
title: 'Wins', width: constraints.maxWidth * 0.95,
width: constraints.maxWidth * 0.95, values: winCounts,
values: winCounts, itemCount: 3,
itemCount: 3, barColor: Colors.blue,
barColor: Colors.blue, ),
), SizedBox(height: constraints.maxHeight * 0.02),
SizedBox(height: constraints.maxHeight * 0.02), StatisticsTile(
], icon: Icons.percent,
if (winRates.isNotEmpty) ...[ title: 'Winrate',
StatisticsTile( width: constraints.maxWidth * 0.95,
icon: Icons.percent, values: winRates,
title: 'Winrate', itemCount: 5,
width: constraints.maxWidth * 0.95, barColor: Colors.orange[700]!,
values: winRates, ),
itemCount: 5, SizedBox(height: constraints.maxHeight * 0.02),
barColor: Colors.orange[700]!, StatisticsTile(
), icon: Icons.casino,
SizedBox(height: constraints.maxHeight * 0.02), title: 'Amount of Matches',
], width: constraints.maxWidth * 0.95,
if (matchCounts.isNotEmpty) ...[ values: matchCounts,
StatisticsTile( itemCount: 10,
icon: Icons.casino, barColor: Colors.green,
title: 'Amount of Matches', ),
width: constraints.maxWidth * 0.95,
values: matchCounts,
itemCount: 10,
barColor: Colors.green,
),
],
], ],
), ),
child: const TopCenteredMessage( child: const TopCenteredMessage(