Cleaned up the repo

Singed-off-by: Andreas Fahrecker <AndreasFahrecker@gmail.com>
This commit is contained in:
Andreas Fahrecker
2021-03-13 19:47:20 +01:00
parent fa2cd4c192
commit e889f93d5c
49 changed files with 325 additions and 520 deletions

View File

@ -0,0 +1,22 @@
import 'package:redux/redux.dart';
import 'package:time_progress_tracker/redux/actions/app_settings_actions.dart';
import 'package:time_progress_tracker/redux/actions/redux_actions.dart';
import 'package:time_progress_tracker/redux/actions/time_progress_actions.dart';
final hasProgressesLoadedReducer = combineReducers<bool>([
TypedReducer<bool, TimeProgressListLoadedAction>(_setTrue),
TypedReducer<bool, TimeProgressListNotLoadedAction>(_setFalse)
]);
final hasSettingsLoadedReducer = combineReducers<bool>([
TypedReducer<bool, AppSettingsLoadedActions>(_setTrue),
TypedReducer<bool, AppSettingsNotLoadedAction>(_setFalse)
]);
bool _setTrue(bool value, BoolAction action) {
return true;
}
bool _setFalse(bool value, BoolAction action) {
return false;
}