How can I open other apps or files using my flutter app? Let's say, if I am going to open some photos, it asks me if I want to open them with the Gallery or other app like image viewer. Like this, I want to add an option that if I press on some file, like pdf, I want my app to be in the list of launcher apps so when it asks me to choose a launcher app, my app will be there as well.
CodePudding user response:
If you are trying to open another app from within your app I would suggest the 'open_file' package (https://pub.dev/packages/open_file).
The last sentence of your question seems to suggest that you are trying to open your own app though, which is a bit confusing, I think that's why it was downvoted.
CodePudding user response:
What you're looking for is the receive_sharing_intent
.
It's a Flutter plugin that enables flutter apps to receive sharing photos, videos text, URL, or any other type from other apps.