custom_share 1.0.8 copy "custom_share: ^1.0.8" to clipboard
custom_share: ^1.0.8 copied to clipboard

A Flutter plugin for sharing text and files via **NATIVE SHARE UI**, supporting Android , iOS, macOS, Windows, Linux.

Custom Share #

A Flutter plugin for sharing text and files via NATIVE SHARE UI, supporting Android , iOS, macOS, Windows, Linux.

Features #

  • Share text, URLs, and files to popular social media apps.
  • Use NATIVE SHARE UI.
  • Easy-to-use API for developers.

Installation #

Add the following to your pubspec.yaml:

dependencies:
  custom_share: ^1.0.8

Run:

flutter pub get

Usage #

import 'package:custom_share/custom_share.dart';

// Share text
final result = await CustomShare.shareText(text: 'Hello from Custom Share!');
print('Share result: $result');

// Share a file
final filePath = '/path/to/sample.txt';
final fileResult = await CustomShare.shareFile(
  filePath: filePath,
);
print('File share result: $fileResult');

Screenshots #

Below are some screenshots of the custom_share plugin in action:

Android Screenshot macOS Screenshot iOS Screenshot

Example #

See the example/ folder for a sample Flutter app demonstrating the usage of this plugin.

Issues #

Please file any issues or feature requests on the GitHub issue tracker.

License #

BSD-3-Clause

1
likes
160
points
213
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for sharing text and files via **NATIVE SHARE UI**, supporting Android , iOS, macOS, Windows, Linux.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, mime, plugin_platform_interface

More

Packages that depend on custom_share