Actualizacion del programa
This commit is contained in:
@@ -143,6 +143,11 @@ class RouteSimulatorService extends ChangeNotifier {
|
||||
final n = AppNotification(event:event, title:title, body:body, routeId:routeId);
|
||||
_lastNotification = n;
|
||||
_history.insert(0, n);
|
||||
// Persistir en DB para historial
|
||||
DbHelper.insertNotifHistory(
|
||||
routeId: routeId, eventType: event.name,
|
||||
title: title, body: body,
|
||||
).catchError((_) {});
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user