From bd740cc7dc41bf448197d11a6765ec57a131edd0 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Sat, 4 May 2024 21:13:06 +0200 Subject: [PATCH] removed timer screen auto-dismiss --- lib/screens/timer/screen_timer.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/screens/timer/screen_timer.dart b/lib/screens/timer/screen_timer.dart index 74f2c2e..b76899a 100644 --- a/lib/screens/timer/screen_timer.dart +++ b/lib/screens/timer/screen_timer.dart @@ -44,9 +44,7 @@ class TimerScreenState extends State with TickerProviderStateMixin timelineController = AnimationController(vsync: this, duration: widget.duration); timelineAnimation = Tween(begin: 1, end: 0).animate(timelineController); timelineController.addStatusListener((status) { - if (timelineController.value == 1) { - Navigator.of(context).pop(); - } else if (status == AnimationStatus.completed) { + if (status == AnimationStatus.completed) { context.read().add(const TimerEndedEvent()); } });