You can use Dynamic Linking (https://pub.dev/packages/firebase_dynamic_links).
This way, you can use a generated link to get parameters like what URL to open, if its fullscreen, if it's a new tab or window, and so on.
It works the same way as 'mailto:[email protected]' to send emails. You can set your dynamic links as 'yourappname/openUrl=http://google.com'. Then, in your Flutter app, you will detect that dynamic linking that matches with your app id, and you will be able to get the parameters and take actions according to that.
Take a look at the next example of this Firebase Dynamic Links library:
final ShortDynamicLink shortenedLink = await DynamicLinkParameters.shortenUrl(
Uri.parse('https://example.page.link/?link=https://example.com/&apn=com.example.android&ibn=com.example.ios'),
DynamicLinkParametersOptions(ShortDynamicLinkPathLength.unguessable),
);
This way, you can parse multiple queries and achieve your goal.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…