plus_plugins
plus_plugins copied to clipboard
[Question]: Is possible to share image to other app using android_intent_Plus?
What is your question?
In my application I need to share images to other applications via Intent. Is it possible?
I can use method channel + FileProvider in kt, but is it possible with the package?
Checklist before submitting a question
- [x] I searched issues in this repository and couldn't find such bug/problem
- [x] I Google'd a solution and I couldn't find it
- [x] I searched on StackOverflow for a solution and I couldn't find it
- [x] I read the README.md file of the plugin
- [x] I am using the latest version of the plugin
- [x] All dependencies are up to date with
flutter pub upgrade - [x] I did a
flutter clean - [x] I tried running the example project
final params = ShareParams(
text: 'Great picture',
files: [XFile('${directory.path}/image.jpg')],
);
final result = await SharePlus.instance.share(params);
if (result.status == ShareResultStatus.success) {
print('Thank you for sharing the picture!');
}
Should do the trick.
final result = await SharePlus.instance.share(params);
But the idea is not to open all options. It's to have something similar to Spotify and Shopee.
I wan to share different contents to some specifics applications
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days