coloring wip
This commit is contained in:
parent
79bf2b015d
commit
03987378c0
|
|
@ -124,13 +124,18 @@ class _SuperGameState extends State<SuperGame> {
|
||||||
const Spacer(flex: 1),
|
const Spacer(flex: 1),
|
||||||
GameHash(
|
GameHash(
|
||||||
cellOnTapCallback: _showSubGameDialog,
|
cellOnTapCallback: _showSubGameDialog,
|
||||||
children: data
|
children: Iterable.generate(data.length)
|
||||||
.map(
|
.map(
|
||||||
(game) => Padding(
|
(i) => DecoratedBox(
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: nextPlay == i ? Colors.lightGreenAccent : null,
|
||||||
|
),
|
||||||
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(15),
|
padding: const EdgeInsets.all(15),
|
||||||
child: TTCGame(
|
child: TTCGame(
|
||||||
turn: turn,
|
turn: turn,
|
||||||
data: game,
|
data: data[i],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue