Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to share a link and a finished text using Share

I use the Share package so that when I click on the icon I can share the link. I would also like that when I share my link, I have a ready-made text description of this link. I tried to do this through Subject, but the result is the link itself without text.

 onTap: () {
  Share.share('https://www.youtube.com', subject:  'Nice Service');
 },

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

You can use this:

await Share.share(
        'https://www.youtube.com' + ',' + 'Nice Service',
      );
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading