flutter_share_plugin

This plugin helps sharing content like, text, image or a file to other apps. It supports both Android and iOS, no additional changes are required in native code or projects (Except ofcourse the Storage Access permissions, you'll need to add that in your project manually).

Getting Started:

Install plugin:

Visit Pub Packages page for flutter share plugin

Import library:

import 'package:flutter_share_plugin/flutter_share_plugin.dart';

That's it. Now, you are ready to go.

Usage Examples:

Share only text:

FlutterShare.shareText("Text to be shared");

Share only file:

String filePath = "../song.mp3";
FlutterShare.shareFile(filePath);

Share file and text content:

String filePath = "../screenshot_123.jpg";
FlutterShare.shareFileWithText(textContent: "Screenshot attached", filePath: filePath);

Libraries

flutter_share_plugin