fix: include flash rows/cols in BoardPainter.shouldRepaint

The shouldRepaint override was omitting flashRows and flashCols comparisons,
which could cause the painter to skip redraws when these lists changed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-11 21:13:01 +09:00
parent 8739fc0e26
commit d283bf6959
+3 -1
View File
@@ -131,5 +131,7 @@ class BoardPainter extends CustomPainter {
bool shouldRepaint(BoardPainter old) =>
old.grid != grid ||
old.ghost != ghost ||
old.flashProgress != flashProgress;
old.flashProgress != flashProgress ||
old.flashRows != flashRows ||
old.flashCols != flashCols;
}