share_it 0.5.1+3

Flutter Android iOS

A plugin to share text, images and files. Written in Kotlin and Swift for both Android and iOS.

share_it #

pub package

A plugin to share text, images and files.

The Android version uses an androidx library. Also remember to add the necessary permissions in your app when needed.

Features:

  • iOS & Android support
  • iPad support
  • Share text, links, images and files
  • Share multiple items
  • Common dart interface methods & specific platform methods
  • Android >= N and Android < N* support for file sharing

TODOs:

  • Android 10 content preview support
  • Check external Android storage support for file sharing

Example #

// just text (or a link)
ShareIt.text(
  content: 'Hello!!!', 
  androidSheetTitle: 'Title here!!'
);
// a link or just text if is an invalid url
ShareIt.link(
  url: 'https://www.google.com', 
  androidSheetTitle: 'Google'
);
// some file
ShareIt.file(
  path: await _imageBundlePath, 
  type: ShareItFileType.image
);

There are also specific platform methods if needed.

--

  • Sharing of files for Android < N only seems to be working for files located in /sdcard (AFAIK).
11
likes
80
pub points
84%
popularity

A plugin to share text, images and files. Written in Kotlin and Swift for both Android and iOS.

Homepage
Repository (GitLab)
View/report issues

Documentation

API reference

Uploader

elamericano@gmx.es

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on share_it