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

@ -16,7 +16,7 @@ final fireNotificationReducer = combineReducers<List<FireNotification>>([
List<FireNotification> _receivedFireNotification(
List<FireNotification> notifications, AddedFireNotificationAction action) {
return new List.from(notifications)..add(action.notif);
return new List.from(notifications)..insert(0, action.notif);
}
List<FireNotification> _deletedFireNotification(