I have an app that recieves push notification using OneSignal. I have made a notification opened handler that should open specific screen on click of the notification. How c
You can use this wonderful plugin: https://pub.dev/packages/get
Description from the package: A consistent navigation library that lets you navigate between screens, open dialogs, and display snackbars from anywhere in your code without context.
Get.to(NextScreen()); // look at this simplicity :)
Get.back(); // pop()
Get.off(NextScreen()); // clears the previous routes and opens a new screen.