From 0eafda1430667377cc2137688dbce427d751ceca Mon Sep 17 00:00:00 2001 From: broodjeaap Date: Thu, 11 Jun 2020 20:30:47 +0200 Subject: [PATCH] Cleaner way of formatting the month values --- lib/main.dart | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 3f304b4..5612f7c 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -34,10 +34,18 @@ class MonthValuesPage extends StatelessWidget { return TableRow( children: [ TableCell( - child: Text(month.key, style: monthTableRowTextStyle, textAlign: TextAlign.right) + child: Text( + month.key, + style: monthTableRowTextStyle, + textAlign: TextAlign.right + ) ), TableCell( - child: Center(child: Text(month.value.toString(), style: monthTableRowTextStyle)) + child: Text( + month.value.toString(), + style: monthTableRowTextStyle, + textAlign: TextAlign.center + ) ) ] );