FLUTTER ECOSYSTEM

datadirr/open_share_plus

用于将内容分享到社交媒体的 Flutter 插件。您可以使用它分享到邮件、电话、WhatsApp 和系统共享界面。

open_share_plus 项目封面
Stars
0
Forks
0
最近推送(UTC)
2026年5月23日
项目状态
未归档
datadirr GitHub avatar
GITHUB User

datadirr ↗

Internet Company

@datadirrIndia官方网站 ↗
语言C++CMakeDartSwiftRubyCKotlinHTMLObjective-C

此仓库发布的插件

使用的依赖

依赖清单 8 项
  • flutter{"sdk":"flutter"}
  • flutter_web_plugins{"sdk":"flutter"}
  • web^1.1.1
  • plugin_platform_interface^2.1.8
  • url_launcher^6.3.2
  • open_filex^4.7.0
  • flutter_test开发依赖{"sdk":"flutter"}
  • flutter_lints开发依赖^6.0.0

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

https://datadirr.com/datadirr.png

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: "919876543210", text: "datadirr")
Local File (Only ANDROID, IOS)
Open.localFile(filePath: localFilePath)