搜尋套件、儲存庫與 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

原始碼儲存庫

使用此套件的專案

所在榜單