Merge pull request '1 wird immer als 1.00 angezeigt #55' (#56) from bug/55-1-wird-falsch-angezeigt into development
Reviewed-on: #56 Reviewed-by: mathiskir <mathis.kirchner.mk@gmail.com>
This commit was merged in pull request #56.
This commit is contained in:
@@ -80,7 +80,7 @@ class StatisticsTile extends StatelessWidget {
|
|||||||
const Spacer(),
|
const Spacer(),
|
||||||
Center(
|
Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
values[index].$2 <= 1
|
values[index].$2 <= 1 && values[index].$2 is double
|
||||||
? values[index].$2.toStringAsFixed(2)
|
? values[index].$2.toStringAsFixed(2)
|
||||||
: values[index].$2.toString(),
|
: values[index].$2.toString(),
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
|
|||||||
Reference in New Issue
Block a user