mail_launcher 0.0.2 icon indicating copy to clipboard operation
mail_launcher: ^0.0.2 copied to clipboard

Show Mail client selector on Android or iOS

mail_launcher #

Open mail client select dialog to open mailto:. On ios it will show only specified apps if installed, on Android all apps which receives mailto: scheme.

Setup #

iOS #

iOS requires you to list the URL schemes you would like to query in the Info.plist file.

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>googlegmail</string>
    <string>x-dispatch</string>
    <string>readdle-spark</string>
    <string>airmail</string>
    <string>ms-outlook</string>
    <string>ymail</string>
    <string>fastmail</string>
</array>

Usage #

MailLauncher.launch(
    to: "to@example.com", 
    subject: "Subject", 
    body: "Body", 
    dialogTitle: "Choose",
);

Screenshot #

0
likes
110
pub points
32%
popularity

Publisher

unverified uploader

Show Mail client selector on Android or iOS

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on mail_launcher