notifications update

pull/3/head
haroon amjad 2 years ago
parent 9030b9bc81
commit ab1aa33ff3

@ -131,13 +131,15 @@ class AppNotifications {
notification.videoURL = message.data["VideoUrl"];
}
Navigator.of(context).push(
MaterialPageRoute(
builder: (BuildContext context) => NotificationsDetailsPage(
notification: notification,
Future.delayed(Duration(seconds: 5), () {
Navigator.of(context).push(
MaterialPageRoute(
builder: (BuildContext context) => NotificationsDetailsPage(
notification: notification,
),
),
),
);
);
});
}
void _handleOpenApp(RemoteMessage message) {
@ -155,13 +157,15 @@ class AppNotifications {
notification.videoURL = message.data["VideoUrl"];
}
Navigator.of(context).push(
MaterialPageRoute(
builder: (BuildContext context) => NotificationsDetailsPage(
notification: notification,
Future.delayed(Duration(seconds: 5), () {
Navigator.of(context).push(
MaterialPageRoute(
builder: (BuildContext context) => NotificationsDetailsPage(
notification: notification,
),
),
),
);
);
});
}
}
}

Loading…
Cancel
Save