diff --git a/lib/main.dart b/lib/main.dart index 67d9d43..40d8cc4 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -144,8 +144,8 @@ class _TestingGroundsPageState extends State { Widget _generateGameField() { const alphabet = "ABCDEFGHIJKLMNOPQRST"; return Container( - width: (alphabet.length + 1) * 100, - height: 1100, + width: (alphabet.length + 3) * 100, + height: 1300, padding: const EdgeInsets.all(10), child: Stack( children: [ @@ -166,8 +166,19 @@ class _TestingGroundsPageState extends State { left: (i + 1) * 100.0, top: 0, child: Container( - width: 100, - height: 100, + width: 90, + height: 90, + alignment: Alignment.center, + child: Text(alphabet[i], style: const TextStyle(fontSize: 40)), + ), + ), + for (int i = 0; i < alphabet.length; i++) + Positioned( + left: (i + 1) * 100.0, + top: 1100, + child: Container( + width: 90, + height: 90, alignment: Alignment.center, child: Text(alphabet[i], style: const TextStyle(fontSize: 40)), ), @@ -177,8 +188,19 @@ class _TestingGroundsPageState extends State { left: 0, top: (j + 1) * 100.0, child: Container( - width: 100, - height: 100, + width: 90, + height: 90, + alignment: Alignment.center, + child: Text("$j", style: const TextStyle(fontSize: 40)), + ), + ), + for (int j = 0; j < 10; j++) + Positioned( + left: (alphabet.length + 1) * 100, + top: (j + 1) * 100.0, + child: Container( + width: 90, + height: 90, alignment: Alignment.center, child: Text("$j", style: const TextStyle(fontSize: 40)), ), @@ -936,8 +958,8 @@ class _GamePageState extends State { Widget _generateGameField() { const alphabet = "ABCDEFGHIJKLMNOPQRST"; return Container( - width: (alphabet.length + 1) * 100, - height: 1100, + width: (alphabet.length + 3) * 100, + height: 1300, padding: const EdgeInsets.all(10), child: Stack( children: [ @@ -958,8 +980,19 @@ class _GamePageState extends State { left: (i + 1) * 100.0, top: 0, child: Container( - width: 100, - height: 100, + width: 90, + height: 90, + alignment: Alignment.center, + child: Text(alphabet[i], style: const TextStyle(fontSize: 40)), + ), + ), + for (int i = 0; i < alphabet.length; i++) + Positioned( + left: (i + 1) * 100.0, + top: 1100, + child: Container( + width: 90, + height: 90, alignment: Alignment.center, child: Text(alphabet[i], style: const TextStyle(fontSize: 40)), ), @@ -969,8 +1002,19 @@ class _GamePageState extends State { left: 0, top: (j + 1) * 100.0, child: Container( - width: 100, - height: 100, + width: 90, + height: 90, + alignment: Alignment.center, + child: Text("$j", style: const TextStyle(fontSize: 40)), + ), + ), + for (int j = 0; j < 10; j++) + Positioned( + left: (alphabet.length + 1) * 100, + top: (j + 1) * 100.0, + child: Container( + width: 90, + height: 90, alignment: Alignment.center, child: Text("$j", style: const TextStyle(fontSize: 40)), ), @@ -983,8 +1027,8 @@ class _GamePageState extends State { Widget _generateStaticField() { const alphabet = "ABCDEFGHIJKLMNOPQRST"; return Container( - width: (alphabet.length + 1) * 100, - height: 1100, + width: (alphabet.length + 3) * 100, + height: 1300, padding: const EdgeInsets.all(10), child: Stack( children: [ @@ -1005,8 +1049,19 @@ class _GamePageState extends State { left: (i + 1) * 100.0, top: 0, child: Container( - width: 100, - height: 100, + width: 90, + height: 90, + alignment: Alignment.center, + child: Text(alphabet[i], style: const TextStyle(fontSize: 40)), + ), + ), + for (int i = 0; i < alphabet.length; i++) + Positioned( + left: (i + 1) * 100.0, + top: 1100, + child: Container( + width: 90, + height: 90, alignment: Alignment.center, child: Text(alphabet[i], style: const TextStyle(fontSize: 40)), ), @@ -1016,8 +1071,19 @@ class _GamePageState extends State { left: 0, top: (j + 1) * 100.0, child: Container( - width: 100, - height: 100, + width: 90, + height: 90, + alignment: Alignment.center, + child: Text("$j", style: const TextStyle(fontSize: 40)), + ), + ), + for (int j = 0; j < 10; j++) + Positioned( + left: (alphabet.length + 1) * 100, + top: (j + 1) * 100.0, + child: Container( + width: 90, + height: 90, alignment: Alignment.center, child: Text("$j", style: const TextStyle(fontSize: 40)), ),