coloring wip

This commit is contained in:
Andrei Stoica 2024-12-27 16:02:25 -05:00
parent 79bf2b015d
commit 03987378c0
1 changed files with 11 additions and 6 deletions

View File

@ -124,13 +124,18 @@ class _SuperGameState extends State<SuperGame> {
const Spacer(flex: 1),
GameHash(
cellOnTapCallback: _showSubGameDialog,
children: data
children: Iterable.generate(data.length)
.map(
(game) => Padding(
(i) => DecoratedBox(
decoration: BoxDecoration(
color: nextPlay == i ? Colors.lightGreenAccent : null,
),
child: Padding(
padding: const EdgeInsets.all(15),
child: TTCGame(
turn: turn,
data: game,
data: data[i],
),
),
),
)