From 3ae9699137757b72c3a6a5356cd0b68dfcf4fc17 Mon Sep 17 00:00:00 2001 From: "k.mannweiler" <2012491@stud.hs-mannheim.de> Date: Fri, 3 Mar 2023 17:21:27 +0100 Subject: [PATCH] Add dispose to timerprovider --- lib/providers/timer_provider.dart | 6 ++++++ 1 file changed, 6 insertions(+) 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(); + } }