native_share 1.0.0

Flutter Android iOS

A Flutter plugin to share content from your Flutter app via the platform's share dialog.

native_share #

A Flutter plugin to share content from your Flutter app via the platform's share dialog.

Wraps the ACTION_SEND Intent on Android and UIActivityViewController on iOS.

iOS support Title,Url,Image(local & remote)

Android support Title,Url,Image(local & remote)

Usage #

To use this plugin, add native_share as a dependency in your pubspec.yaml file.

Example #

Import the library via

import 'package:native_share/native_share.dart';

Then invoke the static share method anywhere in your Dart code

NativeShare.share({'title':'Plugin example app','url':'https://github.com/persenlee/native_share','image':null});

Others #

for http image resource

In iOS Info.plist should add NSAppTransportSecurity for ATS

example

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
    <key>NSAllowsArbitraryLoadsForMedia</key>
    <true/>
    <key>NSAllowsArbitraryLoadsInWebContent</key>
    <true/>
    <key>NSAllowsLocalNetworking</key>
    <true/>
</dict>
4
likes
90
pub points
71%
popularity

A Flutter plugin to share content from your Flutter app via the platform's share dialog.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

persenlee90@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on native_share