Actually working... oops

This commit is contained in:
2024-05-02 11:43:16 -06:00
parent f0a286b7b7
commit 73bf1500f9
2 changed files with 48 additions and 25 deletions
+3 -4
View File
@@ -15,7 +15,7 @@ class MyApp extends StatelessWidget {
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
home: const MyHomePage(),
);
}
}
@@ -28,13 +28,12 @@ class MyHomePage extends StatefulWidget {
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
title: Text(widget.title),
title: const Text('Abstract Factory'),
),
body: Center(
child: Column(
@@ -44,7 +43,7 @@ class _MyHomePageState extends State<MyHomePage> {
'You have pushed the button this many times:',
),
Text(
'$_counter',
'some text',
style: Theme.of(context).textTheme.headlineMedium,
),
],