Redo seperate visibility
This commit is contained in:
@@ -66,7 +66,6 @@ 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',
|
||||||
@@ -76,8 +75,6 @@ class _StatisticsViewState extends State<StatisticsView> {
|
|||||||
barColor: Colors.blue,
|
barColor: Colors.blue,
|
||||||
),
|
),
|
||||||
SizedBox(height: constraints.maxHeight * 0.02),
|
SizedBox(height: constraints.maxHeight * 0.02),
|
||||||
],
|
|
||||||
if (winRates.isNotEmpty) ...[
|
|
||||||
StatisticsTile(
|
StatisticsTile(
|
||||||
icon: Icons.percent,
|
icon: Icons.percent,
|
||||||
title: 'Winrate',
|
title: 'Winrate',
|
||||||
@@ -87,8 +84,6 @@ class _StatisticsViewState extends State<StatisticsView> {
|
|||||||
barColor: Colors.orange[700]!,
|
barColor: Colors.orange[700]!,
|
||||||
),
|
),
|
||||||
SizedBox(height: constraints.maxHeight * 0.02),
|
SizedBox(height: constraints.maxHeight * 0.02),
|
||||||
],
|
|
||||||
if (matchCounts.isNotEmpty) ...[
|
|
||||||
StatisticsTile(
|
StatisticsTile(
|
||||||
icon: Icons.casino,
|
icon: Icons.casino,
|
||||||
title: 'Amount of Matches',
|
title: 'Amount of Matches',
|
||||||
@@ -98,7 +93,6 @@ class _StatisticsViewState extends State<StatisticsView> {
|
|||||||
barColor: Colors.green,
|
barColor: Colors.green,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
],
|
|
||||||
),
|
),
|
||||||
child: const TopCenteredMessage(
|
child: const TopCenteredMessage(
|
||||||
icon: Icons.info,
|
icon: Icons.info,
|
||||||
|
|||||||
Reference in New Issue
Block a user