native_share_android 0.0.1
native_share_android: ^0.0.1 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.
✨ 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: ^0.0.1
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 Attachments
NativeShareAndroid.sendEmail(
email: "[email protected]",
subject: "Test Email",
body: "This is a test email.",
attachments: ["/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! 🚀