Skip to content

Commit 96f3fc0

Browse files
author
Wenhao
committed
fix: added notifyListeners for undo/redo for DrawingController
1 parent de36ef7 commit 96f3fc0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/drawing_controller.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ class DrawingController extends ChangeNotifier {
361361
if (_currentIndex > 0) {
362362
_currentIndex = _currentIndex - 1;
363363
_refreshDeep();
364+
notifyListeners();
364365
}
365366
}
366367

@@ -380,6 +381,7 @@ class DrawingController extends ChangeNotifier {
380381
if (_currentIndex < _history.length) {
381382
_currentIndex = _currentIndex + 1;
382383
_refreshDeep();
384+
notifyListeners();
383385
}
384386
}
385387

0 commit comments

Comments
 (0)