Do Widgets tutorial #1

Merged
kornerr merged 15 commits from tutorial into master 2026-06-04 17:59:51 +02:00
Showing only changes of commit 52237ab4d8 - Show all commits

View File

@@ -6,6 +6,17 @@ void main() {
runApp(const MainApp());
}
class GamePage extends StatelessWidget {
GamePage({super.key});
final Game _game = Game();
@override
Widget build(BuildContext context) {
return Container();
}
}
class MainApp extends StatelessWidget {
const MainApp({super.key});
@@ -19,9 +30,8 @@ class MainApp extends StatelessWidget {
child: Text("Birdle"),
),
),
body: Center(
child: Tile("A", HitType.hit),
),
//body: Center(child: Tile("A", HitType.hit)),
body: Center(child: GamePage()),
),
);
}