Last updated:
0 purchases
launchers
launchers #
A Flutter plugin that makes it easy to link into other apps, including email, sms, WhatsApp, etc.
This plugin is extensible, but a list of included providers can be found at the bottom of this README:
Usage #
By provider
You can open a specific provider (or app)
final Email email = Email(
body: "Hello, world",
subject: "My first message",
recipients: ["[email protected]"],
attachmentPath: attachment,
);
/// In this case, [gmailProvider] is one of the packaged providers that comes with the plugin. You
/// can also register your own
LaunchService().launchProvider(gmailProvider.providerKey, email);
copied to clipboard
By operation
You can also specify an operation and the plugin will attempt to find a suitable launcher:
final Email email = Email(
body: "Hello, world",
subject: "My first message",
recipients: ["[email protected]"],
attachmentPath: attachment,
);
/// In this case [composeEmailOperation] is a statically defined operation schema that a provider
/// can 'implement'. Out of the box, there are two providers for email, a native email provider that
/// opens the devices defaul mail program, or the GMail app
final results = await LaunchService().launch(composeEmailOperation, email);
copied to clipboard
Included Providers #
sms
phone
facebook
gmail
instagram
twitter
linkedin
snapchat
pinterest
paypal
cashapp
venmo
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.