Cleaner way of formatting the month values

This commit is contained in:
broodjeaap 2020-06-11 20:30:47 +02:00
parent 69e0da8b1e
commit 0eafda1430

View file

@ -34,10 +34,18 @@ class MonthValuesPage extends StatelessWidget {
return TableRow( return TableRow(
children: [ children: [
TableCell( TableCell(
child: Text(month.key, style: monthTableRowTextStyle, textAlign: TextAlign.right) child: Text(
month.key,
style: monthTableRowTextStyle,
textAlign: TextAlign.right
)
), ),
TableCell( TableCell(
child: Center(child: Text(month.value.toString(), style: monthTableRowTextStyle)) child: Text(
month.value.toString(),
style: monthTableRowTextStyle,
textAlign: TextAlign.center
)
) )
] ]
); );