Fixed error in app state reducer and implemented new actions in timer

reducer

Signed-off-by: Andreas Fahrecker <AndreasFahrecker@gmail.com>
This commit is contained in:
Andreas Fahrecker
2020-10-13 15:08:59 +02:00
parent 90b19e304d
commit 54c3823064
2 changed files with 29 additions and 7 deletions

View File

@ -1,7 +1,6 @@
import 'package:time_progress_calculator/actions/timer_actions.dart';
import 'package:time_progress_calculator/models/app_state.dart';
import 'package:time_progress_calculator/reducers/timer_reducer.dart';
AppState appReducer(AppState state, Action action) {
return AppState(timer: timersReducer(state.timer, action));
AppState appStateReducer(AppState state, dynamic action) {
return AppState(timers: timersReducer(state.timers, action));
}