open_share_plus

Flutter Plugin for sharing contents to social media.You can use it share to Mail, WhatsApp And System Share UI

Using

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

Installation

First, add open_share_plus as a dependency in your pubspec.yaml file.

In your flutter project add the dependency:

dependencies:
  ...
  open_share_plus:

For help getting started with Flutter, view the online documentation.

Setup Configuration

  • Please check if use open localFile {support iOS(DocumentInteraction) / android(intent) / PC(ffi) / web(dart:html)} open_filex.
  • Please check if use open browser, phone, mail and whatsapp url_launcher.

Example

Please follow this example here.

Browser

Open.browser(url: "https://datadirr.com")

Phone Dial

Open.phone(phoneNumber: "+919726428397")

Mail

Open.mail(toAddress: "datadirr@gmail.com", subject: "datadirr", body: "datadirr dev")

WhatsApp (whatsAppNumber with country code)

Open.whatsApp(whatsAppNumber: "919726428397", text: "datadirr")

Local File (Only ANDROID, IOS)

Open.localFile(filePath: localFilePath)