flutter_share_plus 0.0.7 copy "flutter_share_plus: ^0.0.7" to clipboard
flutter_share_plus: ^0.0.7 copied to clipboard

Flutter plugin to share text and images and many more.

flutter_share_plus #

Flutter plugin to share text and images and many more.

Getting Started #

Add into your pubspec.yaml
===========================
flutter_share_plus:
Share single text
=============================================================
Future<void> share_text(String message) async {
    await _channel.invokeMethod('share_text',<String, String>{
      'message':message
    });
  }

ElevatedButton(
    onPressed: (){
        share_text("message111");
    },
    child: Text("Click me to share single text")
),

Share multiple text
=============================================================
 Future<void> share_multiline_text(String title, String description) async {
    await _channel.invokeMethod('share_multiline_text',<String, String>{
      'title':title,'description':description
    });
  }

ElevatedButton(
    onPressed: (){
    share_multiline_text("title111","description111");
    },
    child: Text("Click me to share multiple text")
)

4
likes
130
pub points
68%
popularity

Publisher

unverified uploader

Flutter plugin to share text and images and many more.

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_share_plus