diff --git a/lib/super.dart b/lib/super.dart index 0eb4c00..f1e63f2 100644 --- a/lib/super.dart +++ b/lib/super.dart @@ -124,13 +124,18 @@ class _SuperGameState extends State { 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], + ), ), ), )