From 69e0da8b1e5c889de8b9f54ebdda80e3d58527d6 Mon Sep 17 00:00:00 2001 From: broodjeaap Date: Thu, 11 Jun 2020 20:27:54 +0200 Subject: [PATCH] Little better (?) formatting for the month values page --- lib/main.dart | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 69c1117..3f304b4 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -32,14 +32,14 @@ class MonthValuesPage extends StatelessWidget { TableRow getMonthTableRow(MapEntry month) { return TableRow( - children: [ - TableCell( - child: Text(month.key, style: monthTableRowTextStyle) - ), - TableCell( - child: Text(month.value.toString(), style: monthTableRowTextStyle) - ) - ] + children: [ + TableCell( + child: Text(month.key, style: monthTableRowTextStyle, textAlign: TextAlign.right) + ), + TableCell( + child: Center(child: Text(month.value.toString(), style: monthTableRowTextStyle)) + ) + ] ); } @@ -51,8 +51,10 @@ class MonthValuesPage extends StatelessWidget { appBar: AppBar( title: Text("Month Values") ), - body: Table( - children: monthValues.entries.map(getMonthTableRow).toList() + body: Center( + child: Table( + children: monthValues.entries.map(getMonthTableRow).toList() + ) ) ), );