native_share_android 0.0.5 copy "native_share_android: ^0.0.5" to clipboard
native_share_android: ^0.0.5 copied to clipboard

A Flutter plugin for sharing files and sending emails natively on Android

📲 native_share_android #

A Flutter plugin for native sharing on Android, including file sharing, text sharing, and email sending with attachments.

Support my work 🙂 #

If you like my project, you can support me:

Donate via PayPal Donate via Monobank

✨ Features #

✔ Share files using Android's native share sheet.
✔ Share text content with other applications.
✔ Send emails with attachments directly from your app.


📦 Installation #

Add this dependency to your pubspec.yaml:

dependencies:
  native_share_android: ^latest_version

Then run:

flutter pub get



🚀 Usage

import 'package:native_share_android/native_share_android.dart';


1️⃣ Share a File

NativeShareAndroid.shareFile(
  filePath: "/path/to/file.pdf",
  text: "Check this out!",
);


2️⃣ Share Text

NativeShareAndroid.shareText("Hello, world!");

3️⃣ Send Email with Attachment

NativeShareAndroid.sendEmail(
  email: "example@gmail.com",
  subject: "Test Email",
  body: "This is a test email.",
  attachment: "/path/to/file.pdf",
);

🔗 License

This project is licensed under the MIT License. See LICENSE for more details.

⚡ Enjoy seamless sharing in your Flutter apps! 🚀
4
likes
0
points
8
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for sharing files and sending emails natively on Android

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on native_share_android

Packages that implement native_share_android