Skip to content

Commit

Permalink
Fix timer not properly disposed
Browse files Browse the repository at this point in the history
  • Loading branch information
veloce committed Nov 8, 2024
1 parent e6532e2 commit 747e611
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 5.4.0

- Add a new `border` settings to show a border around the board.
- Fixed a timer not properly canceled when the board is disposed.

## 5.3.0

- Added a new `StaticChessboard` widget that is optimized for scrollable
Expand Down
1 change: 1 addition & 0 deletions lib/src/widgets/board.dart
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ class _BoardState extends State<Chessboard> {
void dispose() {
super.dispose();
_dragAvatar?.cancel();
_cancelShapesDoubleTapTimer?.cancel();
}

@override
Expand Down

0 comments on commit 747e611

Please sign in to comment.