Skip to content

Commit

Permalink
Merge pull request #50 from hedi-ghodhbane/fix/issue_49
Browse files Browse the repository at this point in the history
Fixed should repaint when changing grid properties
  • Loading branch information
deakjahn authored Mar 28, 2024
2 parents 2154051 + f07f4a4 commit 07a64ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/src/crop_grid.dart
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@ class _CropGridPainter extends CustomPainter {
@override
bool shouldRepaint(_CropGridPainter oldDelegate) =>
oldDelegate.grid.crop != grid.crop || //
oldDelegate.grid.isMoving != grid.isMoving;
oldDelegate.grid.isMoving != grid.isMoving ||
oldDelegate.grid.cornerSize != grid.cornerSize ||
oldDelegate.grid.gridColor != grid.gridColor ||
oldDelegate.grid.gridCornerColor != grid.gridCornerColor ||
oldDelegate.grid.gridInnerColor != grid.gridInnerColor;

@override
bool hitTest(Offset position) => true;
Expand Down

0 comments on commit 07a64ab

Please sign in to comment.