mail_launcher 0.0.2 copy "mail_launcher: ^0.0.2" to clipboard
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
130
points
31
downloads

Publisher

unverified uploader

Weekly Downloads

Show Mail client selector on Android or iOS

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on mail_launcher