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), const Spacer(flex: 1),
GameHash( GameHash(
cellOnTapCallback: _showSubGameDialog, cellOnTapCallback: _showSubGameDialog,
children: data children: Iterable.generate(data.length)
.map( .map(
(game) => Padding( (i) => DecoratedBox(
padding: const EdgeInsets.all(15), decoration: BoxDecoration(
child: TTCGame( color: nextPlay == i ? Colors.lightGreenAccent : null,
turn: turn, ),
data: game, child: Padding(
padding: const EdgeInsets.all(15),
child: TTCGame(
turn: turn,
data: data[i],
),
), ),
), ),
) )