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() + ) ) ), );