Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 2882e25

Browse files
author
eightgran
committed
Add stop call on LitSnackbarController
- Stops and resets the controller before disposing it - Improve error handling
1 parent 953dea6 commit 2882e25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/widgets/lit_snackbar_controller.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ class LitSnackbarController {
6565
/// [StatefulWidget] by overriding its dispose method.
6666
void dispose() {
6767
_listeners = [];
68+
animationController.stop();
69+
animationController.reset();
6870
try {
6971
animationController.dispose();
7072
} catch (e) {

0 commit comments

Comments
 (0)