coloring wip
This commit is contained in:
parent
79bf2b015d
commit
03987378c0
|
|
@ -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(
|
||||
padding: const EdgeInsets.all(15),
|
||||
child: TTCGame(
|
||||
turn: turn,
|
||||
data: game,
|
||||
(i) => DecoratedBox(
|
||||
decoration: BoxDecoration(
|
||||
color: nextPlay == i ? Colors.lightGreenAccent : null,
|
||||
),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(15),
|
||||
child: TTCGame(
|
||||
turn: turn,
|
||||
data: data[i],
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue