From d283bf6959a569b0522ee149b14fcfaa7e0f6b87 Mon Sep 17 00:00:00 2001 From: airkjw Date: Thu, 11 Jun 2026 21:13:01 +0900 Subject: [PATCH] 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 --- lib/ui/widgets/board_painter.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ui/widgets/board_painter.dart b/lib/ui/widgets/board_painter.dart index 68d80b7..be006a1 100644 --- a/lib/ui/widgets/board_painter.dart +++ b/lib/ui/widgets/board_painter.dart @@ -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; }