mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-24 08:20:40 +00:00
removed timer screen auto-dismiss
This commit is contained in:
parent
29b6b351c0
commit
bd740cc7dc
1 changed files with 1 additions and 3 deletions
|
@ -44,9 +44,7 @@ class TimerScreenState extends State<TimerScreen> with TickerProviderStateMixin
|
||||||
timelineController = AnimationController(vsync: this, duration: widget.duration);
|
timelineController = AnimationController(vsync: this, duration: widget.duration);
|
||||||
timelineAnimation = Tween<double>(begin: 1, end: 0).animate(timelineController);
|
timelineAnimation = Tween<double>(begin: 1, end: 0).animate(timelineController);
|
||||||
timelineController.addStatusListener((status) {
|
timelineController.addStatusListener((status) {
|
||||||
if (timelineController.value == 1) {
|
if (status == AnimationStatus.completed) {
|
||||||
Navigator.of(context).pop();
|
|
||||||
} else if (status == AnimationStatus.completed) {
|
|
||||||
context.read<TimerBloc>().add(const TimerEndedEvent());
|
context.read<TimerBloc>().add(const TimerEndedEvent());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue