Add login

This commit is contained in:
Ricardo Markiewicz
2019-06-07 21:34:27 -03:00
parent a2eab2f31c
commit de396d9fa3
13 changed files with 387 additions and 137 deletions
+2 -2
View File
@@ -9,11 +9,11 @@ class MonthWidget extends StatefulWidget {
final List<double> perDay;
final Map<String, double> categories;
MonthWidget({Key key, this.documents})
MonthWidget({Key key, this.documents, days})
:
total = documents.map((doc) => doc['value'])
.fold(0.0, (a, b) => a + b),
perDay = List.generate(30, (int index) {
perDay = List.generate(days, (int index) {
return documents.where((doc) => doc['day'] == (index + 1))
.map((doc) => doc['value'])
.fold(0.0, (a, b) => a + b);