Add markers on other two sides of game field
This commit is contained in:
parent
740dcba160
commit
db5745f827
1 changed files with 84 additions and 18 deletions
102
lib/main.dart
102
lib/main.dart
|
|
@ -144,8 +144,8 @@ class _TestingGroundsPageState extends State<TestingGroundsPage> {
|
|||
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<TestingGroundsPage> {
|
|||
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<TestingGroundsPage> {
|
|||
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<GamePage> {
|
|||
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<GamePage> {
|
|||
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<GamePage> {
|
|||
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<GamePage> {
|
|||
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<GamePage> {
|
|||
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<GamePage> {
|
|||
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)),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue