Changed double depiction
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m20s
Pull Request Pipeline / lint (pull_request) Successful in 2m23s

This commit is contained in:
2025-11-23 12:33:13 +01:00
parent c38c731b41
commit e9b041e43a
2 changed files with 4 additions and 3 deletions

View File

@@ -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),
],
),

View File

@@ -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,