talira

share_plus

Flutter plugin for sharing text, links and files through the platform share sheet

open sourceBSD-3-Clausefree

share_plus is a Flutter plugin that shares text, links and files from an app through the platform's own share dialog: the ACTION_SEND intent on Android, UIActivityViewController on iOS, and the equivalent on macOS, the web and Windows, with Linux and Windows also able to share text by email through mailto. It returns whether the user completed the share, and takes a title, subject and share-sheet position. It is a Flutter Favorite and one of the Flutter Community's plus_plugins, maintained in the fluttercommunity/plus_plugins repository.

Problems it solves

  • add a share button to my Flutter app
  • open the iOS and Android share sheet from Flutter
  • share an image file from my Flutter app to other apps
  • know whether the user actually shared from the share sheet

Features

  • share text, URIs and files through the native share sheet
  • Android, iOS, macOS, web, Windows and Linux
  • returns the share result so the app knows whether the user shared
  • title, subject and share-sheet position options
  • share several files at once with XFile

Limitations

  • Sharing files is not supported on Linux.1
  • On the web, Linux and Windows a URI is shared as text.1