From 747e611782a87e895b60587941ad28bd7d8853d2 Mon Sep 17 00:00:00 2001 From: Vincent Velociter Date: Sat, 9 Nov 2024 00:34:09 +0100 Subject: [PATCH] Fix timer not properly disposed --- CHANGELOG.md | 5 +++++ lib/src/widgets/board.dart | 1 + 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc88b8e..6461881 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lib/src/widgets/board.dart b/lib/src/widgets/board.dart index 5a1798c..46fc130 100644 --- a/lib/src/widgets/board.dart +++ b/lib/src/widgets/board.dart @@ -448,6 +448,7 @@ class _BoardState extends State { void dispose() { super.dispose(); _dragAvatar?.cancel(); + _cancelShapesDoubleTapTimer?.cancel(); } @override