launchers 0.5.6+1 icon indicating copy to clipboard operation
launchers: ^0.5.6+1 copied to clipboard

A Flutter plugin that makes it easy to link into native apps or websites

launchers #

pub package Coverage Status

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: ["mrroboto@gmail.com"],
  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);

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: ["mrroboto@gmail.com"],
  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);

Included Providers #

  • sms
  • phone
  • facebook
  • gmail
  • instagram
  • twitter
  • linkedin
  • snapchat
  • pinterest
  • paypal
  • cashapp
  • venmo
8
likes
120
pub points
51%
popularity

Publisher

verified publisher iconsunnyapp.co

A Flutter plugin that makes it easy to link into native apps or websites

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

Dependencies

collection, dartxx, equatable, flutter, logging, logging_config, pedantic, url_launcher

More

Packages that depend on launchers