share_pro 1.0.4 copy "share_pro: ^1.0.4" to clipboard
share_pro: ^1.0.4 copied to clipboard

A Flutter plugin that enables sharing text content to other apps on Android and iOS platforms.

share_pro #

A Flutter plugin that enables sharing text content seamlessly across Android and iOS platforms. With a simple API and null safety support, share_pro makes it easy to implement sharing functionality in your Flutter applications.

pub package Platform Support

Features #

  • 📱 Cross-platform support (Android & iOS)
  • 📝 Share text content to other applications
  • ✨ Simple and intuitive API
  • 🛡️ Null safety support
  • 🚀 Minimal setup required

Platform Support #

Android iOS

Requirements #

  • Android: minSdkVersion 21
  • iOS: iOS 11.0 or higher
  • Flutter: 3.3.0 or higher

Installation #

Add this to your package's pubspec.yaml file:

dependencies:
  share_pro: ^1.0.1
copied to clipboard

Usage #

  1. Import the package:
import 'package:share_pro/share_pro.dart';
copied to clipboard
  1. Use it in your code:
final sharePro = SharePro();

// Share text content
try {
  final result = await sharePro.share('Hello World!');
  
  switch (result) {
    case ShareResult.shared:
      print('Content was shared successfully');
      break;
    case ShareResult.cancelled:
      print('Share was cancelled by user');
      break;
    case ShareResult.error:
      print('Share operation failed');
      break;
  }
} catch (e) {
  print('Error: $e');
}
copied to clipboard

Platform Configuration #

Android #

Add the following to your Android Manifest (android/app/src/main/AndroidManifest.xml):

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.navaghan.share_pro">
    <queries>
        <intent>
            <action android:name="android.intent.action.SEND" />
            <data android:mimeType="text/plain" />
        </intent>
    </queries>
</manifest>
copied to clipboard

iOS #

No additional configuration required.

Example #

Check out the example directory for a complete sample application using share_pro.

License #

This project is licensed under the MIT License - see the LICENSE file for details.

Issues and Feedback #

Please file specific issues, bugs, or feature requests in our issue tracker.

Contributing #

Contributions are welcome! Please read our contributing guidelines to get started.

2
likes
140
points
35
downloads

Publisher

verified publishernavaghandabhi.dev

Weekly Downloads

2024.09.05 - 2025.03.20

A Flutter plugin that enables sharing text content to other apps on Android and iOS platforms.

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on share_pro