open_share_pro
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_pro
as a dependency in your pubspec.yaml file.
In your flutter project add the dependency:
dependencies:
...
open_share_pro:
For help getting started with Flutter, view the online documentation.
Setup Configuration
- Please check if use open localFile 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://techdirr.com")
Phone Dial
Open.phone(phoneNumber: "+919879626497")
Open.mail(toAddress: "dev@techdirr.com", subject: "techdirr", body: "techdirr dev")
WhatsApp (whatsAppNumber with country code)
Open.whatsApp(whatsAppNumber: "919879626497", text: "techdirr")
Local File (Only ANDROID, IOS)
Open.localFile(filePath: localFilePath)