Redo seperate visibility
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user