notifications update

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

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

Loading…
Cancel
Save