From 63777c6b5c6f38d7c8552cae44b8168ad3ac5587 Mon Sep 17 00:00:00 2001 From: Andreas Fahrecker Date: Thu, 15 Oct 2020 15:53:28 +0200 Subject: [PATCH] Fixed Error with nongrowable list in reducer Signed-off-by: Andreas Fahrecker --- lib/reducers/timer_reducer.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/reducers/timer_reducer.dart b/lib/reducers/timer_reducer.dart index 3500ca6..9f6124a 100644 --- a/lib/reducers/timer_reducer.dart +++ b/lib/reducers/timer_reducer.dart @@ -19,7 +19,9 @@ List _setEmptyTimers(List timers, TimersNotLoadedAction action) { } List _addTimer(List timers, AddTimerAction action) { - return List.from(timers, growable: false)..add(action.timer); + return List.from(timers) + ..add(action.timer) + ..toList(growable: false); } List _updateTimer(List timers, UpdateTimerAction action) {