diff --git a/lib/providers/timer_provider.dart b/lib/providers/timer_provider.dart index acf1a94..54a2679 100644 --- a/lib/providers/timer_provider.dart +++ b/lib/providers/timer_provider.dart @@ -23,4 +23,10 @@ class TimerProvider extends ChangeNotifier { _timer?.cancel(); _timer = null; } + + @override + void dispose() { + _timer?.cancel(); + super.dispose(); + } }