Changed double depiction
This commit is contained in:
@@ -93,7 +93,7 @@ class _StatisticsViewState extends State<StatisticsView> {
|
||||
title: 'Winrate per Player',
|
||||
width: constraints.maxWidth * 0.95,
|
||||
values: winRates,
|
||||
itemCount: 5,
|
||||
itemCount: 115,
|
||||
barColor: Colors.orange[700]!,
|
||||
),
|
||||
SizedBox(height: constraints.maxHeight * 0.02),
|
||||
@@ -105,7 +105,6 @@ class _StatisticsViewState extends State<StatisticsView> {
|
||||
itemCount: 10,
|
||||
barColor: Colors.green,
|
||||
),
|
||||
|
||||
SizedBox(height: MediaQuery.paddingOf(context).bottom),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -80,7 +80,9 @@ class StatisticsTile extends StatelessWidget {
|
||||
const Spacer(),
|
||||
Center(
|
||||
child: Text(
|
||||
values[index].$2.toString(),
|
||||
values[index].$2 <= 1
|
||||
? values[index].$2.toStringAsFixed(2)
|
||||
: values[index].$2.toString(),
|
||||
textAlign: TextAlign.center,
|
||||
style: const TextStyle(
|
||||
fontSize: 16,
|
||||
|
||||
Reference in New Issue
Block a user