More work with fire notifications

This commit is contained in:
Vicente J. Ruiz Jurado 2018-07-31 12:51:10 +02:00
parent 5fdaf239c0
commit 9dd8a7de97
24 changed files with 512 additions and 288 deletions

View file

@ -1,29 +1,28 @@
import '../models/appState.dart';
import 'appReducer.dart';
import 'errorReducer.dart';
import 'fireMapReducer.dart';
import 'fireNotificationReducer.dart';
import 'loadedReducer.dart';
import 'loadingReducer.dart';
import 'userReducer.dart';
import 'yourLocationsReducer.dart';
import 'actions.dart';
import 'appReducer.dart';
import 'fireNotificationReducer.dart';
// We create the State reducer by combining many smaller reducers into one!
AppState appStateReducer(AppState prevState, action) {
var state = prevState;
if (action is AppActions)
state = appReducer(prevState, action);
var state = appReducer(prevState, action);
return AppState(
yourLocations: yourLocationsReducer(state.yourLocations, action),
fireNotifications: fireNotificationReducer(state.fireNotifications, action),
yourLocations: yourLocationsReducer(state.yourLocations, action),
fireNotifications:
fireNotificationReducer(state.fireNotifications, action),
fireNotificationsUnread: state.fireNotificationsUnread,
user: userReducer(state.user, action),
isLoading: loadingReducer(state.isLoading, action),
isLoaded: loadedReducer(state.isLoaded, action),
error: errorReducer(state.error, action),
fireMapState: fireMapReducer(state.fireMapState, action),
firesApiKey: state.firesApiKey,
firesApiUrl: state.firesApiUrl,
gmapKey: state.gmapKey
);
firesApiKey: state.firesApiKey,
firesApiUrl: state.firesApiUrl,
serverUrl: state.serverUrl,
gmapKey: state.gmapKey);
}