launchers 0.4.5

  • Readme
  • Changelog
  • Example
  • Installing
  • 50

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: [""],
  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: [""],
  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

[0.4.5] - Official publish #

[0.4.4] - Initial release #


launchers_example #

Demonstrates how to use the launchers plugin.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  launchers: ^0.4.5

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:launchers/launchers.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Feb 27, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.8

Health suggestions

Fix lib/launch_provider_api.dart. (-0.50 points)

Analysis of lib/launch_provider_api.dart reported 1 hint:

line 92 col 12: The getter doesn't override an inherited getter.

Format lib/default_providers.dart.

Run flutter format to format lib/default_providers.dart.

Format lib/email_providers.dart.

Run flutter format to format lib/email_providers.dart.

Format lib/launch_service.dart.

Run flutter format to format lib/launch_service.dart.

Maintenance suggestions

The package description is too short. (-1 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.6.0 <3.0.0
equatable ^1.0.2 1.1.0
flutter 0.0.0
logging ^0.11.3+2 0.11.4
logging_config ^0.4.5 0.4.5
url_launcher ^5.4.1 5.4.2
Transitive dependencies
collection 1.14.11 1.14.12
flutter_web_plugins 0.0.0
isolate 2.0.3
isolate_service 0.4.6
meta 1.1.8
plugin_platform_interface 1.0.2
sky_engine 0.0.99
typed_data 1.1.6
url_launcher_macos 0.0.1+4
url_launcher_platform_interface 1.0.6
url_launcher_web 0.1.1+1
vector_math 2.0.8
Dev dependencies