esysberlin / esys-flutter-share

A Flutter plugin for sharing files & text with other applications.
Apache License 2.0
130 stars 147 forks source link

Share image with text and subject not working #72

Open sc-ot opened 4 years ago

sc-ot commented 4 years ago

Describe the bug The title parameter is empty (for example in an email) and only the text parameter is showing up,

To Reproduce Steps to reproduce the behavior:

  1. call the Share.file() method
  2. use it with the parameter: await Share.file( "Example Tittle", 'cloud.png', imagebytes, 'image/png', text: "Custom Text", );
  3. share it with the email app

Expected behavior Only the text parameter is showing in the email body and the title is still empty.

Desktop (please complete the following information):

Smartphone (please complete the following information):

akashkarli commented 4 years ago

hey,

await Share.file( "Example Title", 'cloud.png', imagebytes, 'image/png', text: "Custom Text", );

in this method have title is share box title not a email title or email subject. in this package you can share text and images to different appliction e.g whatsapp,instagram and email also but without email subject.

i hope in this package add email subject parameters in optional

if you wanna email subject then use this package https://pub.dev/packages/flutter_email_sender

WhatsApp Image 2020-08-08 at 19 47 04