native_share 0.1.0 copy "native_share: ^0.1.0" to clipboard
native_share: ^0.1.0 copied to clipboard

outdated

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>
8
likes
40
pub points
14%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on native_share