How do I launch an app with metadata to open a route?
I don't think it is possible to do this in pure Dart by the current Flutter API. I would write a plugin that hooks application:openURL:options:
on iOS and onCreate/onNewIntent
Android. You can use your plugin to give the Dart code a way to access the received metadata and use it for push
new things Route
in your stack Navigator
at startup time. You can see something like this in the firebase_messaging sample app , which is a good starting point to explore your path around the plugin system.
Here documentation for the plug-ins for more information. If you do decide to write a plugin, consider publishing it so others can use it.
You can also check this comment on question 8711 , which describes another team trying to add deep links to their Flutter app.
source to share