generated from me/template-mit
Compare commits
2 Commits
4f7ada0302
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
| 27fde6474e | |||
| 5ec7fb02db |
@@ -9,16 +9,29 @@ class MainApp extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return const MaterialApp(
|
return const MaterialApp(home: Scaffold(body: GameBoard()));
|
||||||
home: Scaffold(
|
}
|
||||||
body: Row(
|
}
|
||||||
|
|
||||||
|
class GameBoard extends StatelessWidget {
|
||||||
|
const GameBoard({super.key});
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: [
|
children: [
|
||||||
// Player 1 Goal
|
// Player 1 Goal
|
||||||
Column(children: [Text("P1")]),
|
Column(children: [Center(child: Text(" P1 "))]),
|
||||||
// Center holes
|
// Center holes
|
||||||
Column(
|
Column(
|
||||||
|
spacing: 2,
|
||||||
children: [
|
children: [
|
||||||
Row(
|
Row(
|
||||||
|
spacing: 2,
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: [
|
children: [
|
||||||
Column(children: [Text(" 0,0 ")]),
|
Column(children: [Text(" 0,0 ")]),
|
||||||
Column(children: [Text(" 1,0 ")]),
|
Column(children: [Text(" 1,0 ")]),
|
||||||
@@ -29,6 +42,9 @@ class MainApp extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
|
spacing: 2,
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: [
|
children: [
|
||||||
Column(children: [Text(" 0,1 ")]),
|
Column(children: [Text(" 0,1 ")]),
|
||||||
Column(children: [Text(" 1,1 ")]),
|
Column(children: [Text(" 1,1 ")]),
|
||||||
@@ -41,10 +57,8 @@ class MainApp extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
// Player 2 Goal
|
// Player 2 Goal
|
||||||
Column(children: [Text("P2")]),
|
Column(children: [Center(child: Text(" P2 "))]),
|
||||||
],
|
],
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user