From 60d09ee1928d578c639ac7a9ac1059f6dc5ff007 Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Mon, 16 Nov 2020 20:09:48 +0100 Subject: [PATCH] Finished month row of stats --- lib/pages/practice/PracticeSetupPage.dart | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/pages/practice/PracticeSetupPage.dart b/lib/pages/practice/PracticeSetupPage.dart index c8f6950..aec797d 100644 --- a/lib/pages/practice/PracticeSetupPage.dart +++ b/lib/pages/practice/PracticeSetupPage.dart @@ -96,11 +96,19 @@ class _PracticeSetupState extends State { ), Text( snapshot.hasData ? - snapshot.data["All month"].round().toString() + "%" : "-", + snapshot.data["7d month"].toString() + "%" : "-", + textAlign: TextAlign.center, style: TextStyle(fontSize: 25) + ), + Text( + snapshot.hasData ? + snapshot.data["30d month"].toString() + "%" : "-", + textAlign: TextAlign.center, style: TextStyle(fontSize: 25) + ), + Text( + snapshot.hasData ? + snapshot.data["All month"].toString() + "%" : "-", textAlign: TextAlign.center, style: TextStyle(fontSize: 25) ), - Text("70%", textAlign: TextAlign.center, style: TextStyle(fontSize: 25)), - Text("50%", textAlign: TextAlign.center, style: TextStyle(fontSize: 25)) ] ), ]