OThatsA now returns the MaterialApp instead of the MonthValuesPage class
This commit is contained in:
parent
0eafda1430
commit
509146634d
1 changed files with 6 additions and 6 deletions
|
@ -8,7 +8,10 @@ class OhThatsA extends StatelessWidget {
|
||||||
// This widget is the root of your application.
|
// This widget is the root of your application.
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return MonthValuesPage();
|
return MaterialApp(
|
||||||
|
title: "OhThatsA",
|
||||||
|
home: MonthValuesPage()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,9 +56,7 @@ class MonthValuesPage extends StatelessWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return MaterialApp(
|
return Scaffold(
|
||||||
title: "OhThatsA",
|
|
||||||
home: Scaffold(
|
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text("Month Values")
|
title: Text("Month Values")
|
||||||
),
|
),
|
||||||
|
@ -64,7 +65,6 @@ class MonthValuesPage extends StatelessWidget {
|
||||||
children: monthValues.entries.map(getMonthTableRow).toList()
|
children: monthValues.entries.map(getMonthTableRow).toList()
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
);
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue