搜索插件、代码仓与 APP 分类

插件详情v13.3.1

share_plus

用于通过平台共享UI共享内容的Flutter插件,Android上使用ACTION_SEND意图,iOS上使用UIActivityViewController。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
513万
喜欢数
4030
Pub 分数
140

安装插件

flutter pub add share_plus

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

share_plus 是一个 Flutter 插件,可使用平台原生共享 UI 共享内容。在 Android 上,它使用 ACTION_SEND 意图;在 iOS 上,它利用 UIActivityViewController。该包支持 Web、macOS、Windows 和 Linux 等多个平台,提供了一种一致的方式来共享文本、文件、URL 等内容。它简化了与系统级共享功能的集成,无需编写特定于平台的代码。

适合场景

  • 从应用中分享文本或链接
  • 通过系统共享表单发送图片或文件
  • 在所有支持的平台上集成原生共享功能
  • 在应用中实现快速内容分发
  • 支持跨平台共享工作流程

主要特点

  • 跨平台共享支持
  • 用于分享文本、URL 和文件的简单 API
  • 在每个平台上使用原生共享对话框
  • 适用于 Android、iOS、Web、macOS、Windows 和 Linux
  • 无需自定义分享实现

适合对象

  • 需要轻松共享功能的应用程序
  • 面向多个平台的开发者
  • 需要原生共享体验的项目
  • 内容密集型应用,如新闻或社交应用
  • 希望共享时代码量最少的团队

使用建议

  • 需要在 Android 上具有适当的权限才能共享文件
  • Web 支持仅限于具有共享 API 的浏览器
  • 文件共享可能需要正确的 MIME 类型处理
  • 不适合复杂的自定义分享UI
  • 取决于平台分享功能的可用性

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Plus plugins

build

all_plugins GitHub Workflow Status Follow on Twitter


PlusPlugins is a set of Flutter plugins that is developed based on plugins, which previously existed as a part of Flutter plugins, with extra functionalities, support for more platforms and better maintenance.

Feedback and Pull Requests are most welcome!

Plugins

Table of contents:


battery_plus

battery_plus pub points

Flutter plugin for accessing information about the battery state (full, charging, discharging) on Android and iOS.

[readme] [code]

Platform Support
Android iOS macOS Web Linux Windows
✅ ✅ ✅ ✅ ✅ ✅

connectivity_plus

connectivity_plus pub points

Flutter plugin for discovering the state of the network (WiFi & mobile/cellular) connectivity on Android and iOS.

[readme] [code]

Platform Support
Android iOS macOS Web Linux Windows
✅ ✅ ✅ ✅ ✅ ✅

device_info_plus

device_info_plus pub points

Flutter plugin providing detailed information about the device (make, model, etc.), and Android or iOS version the app is running on.

[readme] [code]

Platform Support
Android iOS macOS Web Linux Windows
✅ ✅ ✅ ✅ ✅ ✅

network_info_plus

network_info_plus pub points

Flutter plugin for discovering network info.

[readme] [code]

Platform Support
Android iOS macOS Web Linux Windows
✅ ✅ ✅ ❌ ✅ ✅

package_info_plus

package_info_plus pub points

Flutter plugin for querying information about the application package, such as CFBundleVersion on iOS or versionCode on Android.

[readme] [code]

Platform Support
Android iOS macOS Web Linux Windows
✅ ✅ ✅ ✅ ✅ ✅

sensors_plus

sensors_plus pub points

Flutter plugin for accessing accelerometer, gyroscope, magnetometer and barometer sensors.

[readme] [code]

Platform Support
Android iOS macOS Web Linux Windows
✅ ✅ ❌ ✅ ❌ ❌

share_plus

share_plus pub points

Flutter plugin for sharing content via the platform share UI, using the ACTION_SEND intent on Android and UIActivityViewController on iOS.

[readme] [code]

Platform Support
Android iOS macOS Web Linux Windows
✅ ✅ ✅ ✅ ✅ ✅

android_alarm_manager_plus

android_alarm_manager_plus pub points

Flutter plugin for accessing the Android AlarmManager service, and running Dart code in the background when alarms fire.

[readme] [code]

Platform Support
Android
✅

android_intent_plus

android_intent_plus pub points

Flutter plugin for launching Android Intents. Not supported on iOS.

[readme] [code]

Platform Support
Android
✅

Issues

Please file PlusPlugins specific issues, bugs, or feature requests in our issue tracker.

Plugin issues that are not specific to PlusPlugins can be filed in the Flutter issue tracker.

Contributing

If you wish to contribute a change to any of the existing plugins in this repo, please review our contribution guide and open a pull request.

Status

This repository is maintained by FlutterCommunity authors. Issues here are answered by maintainers and other community members on GitHub on a best-effort basis.

所属分类

依赖

依赖清单 12 项

  • cross_file^0.3.5+2
  • ffi^2.2.0
  • file^7.0.1
  • meta^1.17.0
  • mime^2.0.0
  • share_plus_platform_interface^7.2.0
  • url_launcher_linux^3.2.2
  • url_launcher_platform_interface^2.3.2
  • url_launcher_web^2.4.2
  • url_launcher_windows^3.1.5
  • web^1.1.1
  • win32^6.0.1

源码仓库

使用此插件的项目

所在榜单