plus_plugins icon indicating copy to clipboard operation
plus_plugins copied to clipboard

[Question]: Is possible to share image to other app using android_intent_Plus?

Open devguusta opened this issue 7 months ago • 2 comments

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

devguusta avatar May 23 '25 16:05 devguusta

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.

ggichure avatar May 27 '25 16:05 ggichure

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

devguusta avatar May 27 '25 18:05 devguusta

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

github-actions[bot] avatar Aug 26 '25 00:08 github-actions[bot]