From 509146634df1a078488b91c6d7db8afc98591bd3 Mon Sep 17 00:00:00 2001 From: broodjeaap Date: Thu, 11 Jun 2020 20:36:05 +0200 Subject: [PATCH] OThatsA now returns the MaterialApp instead of the MonthValuesPage class --- lib/main.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 5612f7c..eac312b 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -8,7 +8,10 @@ class OhThatsA extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { - return MonthValuesPage(); + return MaterialApp( + title: "OhThatsA", + home: MonthValuesPage() + ); } } @@ -53,9 +56,7 @@ class MonthValuesPage extends StatelessWidget { @override Widget build(BuildContext context) { - return MaterialApp( - title: "OhThatsA", - home: Scaffold( + return Scaffold( appBar: AppBar( title: Text("Month Values") ), @@ -64,7 +65,6 @@ class MonthValuesPage extends StatelessWidget { children: monthValues.entries.map(getMonthTableRow).toList() ) ) - ), - ); + ); } }