CINXE.COM

share_plus | Flutter package

<!DOCTYPE html> <html lang="en-us"><head><script src="https://www.googletagmanager.com/gtm.js?id=GTM-MX6DBN9" async="async"></script><script src="/static/hash-j60jq2j3/js/gtm.js" async="async"></script><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="ie=edge"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta name="twitter:card" content="summary"/><meta name="twitter:site" content="@dart_lang"/><meta name="twitter:description" content="Flutter plugin for sharing content via the platform share UI, using the ACTION_SEND intent on Android and UIActivityViewController on iOS."/><meta name="twitter:image" content="https://pub.dev/static/hash-j60jq2j3/img/pub-dev-icon-cover-image.png"/><meta property="og:type" content="website"/><meta property="og:site_name" content="Dart packages"/><meta property="og:title" content="share_plus | Flutter package"/><meta property="og:description" content="Flutter plugin for sharing content via the platform share UI, using the ACTION_SEND intent on Android and UIActivityViewController on iOS."/><meta property="og:image" content="https://pub.dev/static/hash-j60jq2j3/img/pub-dev-icon-cover-image.png"/><meta property="og:url" content="https://pub.dev/packages/share_plus"/><title>share_plus | Flutter package</title><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&amp;family=Google+Sans+Display:wght@400&amp;family=Google+Sans+Text:wght@400;500;700&amp;family=Google+Sans+Mono:wght@400;700&amp;display=swap"/><link rel="shortcut icon" href="/static/hash-j60jq2j3/img/flutter-logo-32x32.png"/><meta rel="apple-touch-icon" href="/static/hash-j60jq2j3/img/flutter-logo-32x32.png"/><meta rel="apple-touch-icon-precomposed" href="/static/hash-j60jq2j3/img/flutter-logo-32x32.png"/><link rel="stylesheet" href="https://www.gstatic.com/glue/v25_0/ccb.min.css"/><link rel="search" type="application/opensearchdescription+xml" title="Dart packages" href="/osd.xml"/><link rel="canonical" href="https://pub.dev/packages/share_plus"/><meta name="description" content="Flutter plugin for sharing content via the platform share UI, using the ACTION_SEND intent on Android and UIActivityViewController on iOS."/><link rel="alternate" type="application/atom+xml" title="Updated Packages Feed for Pub" href="/feed.atom"/><link rel="stylesheet" type="text/css" href="/static/hash-j60jq2j3/material/bundle/styles.css"/><link rel="stylesheet" type="text/css" href="/static/hash-j60jq2j3/css/style.css"/><script src="/static/hash-j60jq2j3/material/bundle/script.min.js" defer="defer"></script><script src="/static/hash-j60jq2j3/js/script.dart.js" defer="defer"></script><script src="https://www.gstatic.com/brandstudio/kato/cookie_choice_component/cookie_consent_bar.v3.js" defer="defer" data-autoload-cookie-consent-bar="true"></script><meta name="pub-page-data" content="eyJwa2dEYXRhIjp7InBhY2thZ2UiOiJzaGFyZV9wbHVzIiwidmVyc2lvbiI6IjEwLjEuNCIsImxpa2VzIjozNjY3LCJwdWJsaXNoZXJJZCI6ImZsdXR0ZXJjb21tdW5pdHkuZGV2IiwiaXNEaXNjb250aW51ZWQiOmZhbHNlLCJpc0xhdGVzdCI6dHJ1ZX0sInNlc3Npb25Bd2FyZSI6ZmFsc2V9"/><link rel="preload" href="/static/hash-j60jq2j3/highlight/highlight-with-init.js" as="script"/></head><body class="light-theme"><script src="/static/hash-j60jq2j3/js/dark-init.js"></script><noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><div class="site-header"><button class="hamburger" aria-label="menu toggle"></button><a class="logo" href="/" aria-label="Go to the landing page of pub.dev"><img class="site-logo" src="/static/hash-j60jq2j3/img/pub-dev-logo.svg" alt="" width="140" height="30" role="presentation"/></a><div class="site-header-space"></div><div class="site-header-mask"></div><div class="site-header-search"><form action="/packages" method="GET"><input class="site-header-search-input" name="q" placeholder="New search..." autocomplete="on" title="Search"/></form></div><nav class="site-header-nav scroll-container"><div class="nav-login-container"><button id="-account-login" class="nav-main-button link">Sign in</button></div><div class="nav-container nav-help-container hoverable"><button class="nav-main-button">Help</button><div class="nav-hover-popup"><div class="nav-table-columns"><div class="nav-table-column"><h3>pub.dev</h3><a class="nav-link" href="/help/search" rel="noopener" target="_blank">Searching for packages</a><a class="nav-link" href="/help/scoring" rel="noopener" target="_blank">Package scoring and pub points</a></div><div class="nav-table-column"><h3>Flutter</h3><a class="nav-link" href="https://flutter.dev/using-packages/" rel="noopener" target="_blank">Using packages</a><a class="nav-link" href="https://flutter.dev/developing-packages/" rel="noopener" target="_blank">Developing packages and plugins</a><a class="nav-link" href="https://dart.dev/tools/pub/publishing" rel="noopener" target="_blank">Publishing a package</a></div><div class="nav-table-column"><h3>Dart</h3><a class="nav-link" href="https://dart.dev/guides/packages" rel="noopener" target="_blank">Using packages</a><a class="nav-link" href="https://dart.dev/tools/pub/publishing" rel="noopener" target="_blank">Publishing a package</a></div></div></div></div><div class="nav-container nav-help-container-mobile foldable"><h3 class="foldable-button">pub.dev <img class="foldable-icon" src="/static/hash-j60jq2j3/img/nav-mobile-foldable-icon.svg" alt="toggle folding of the section" width="13" height="6"/></h3><div class="foldable-content"><a class="nav-link" href="/help/search" rel="noopener" target="_blank">Searching for packages</a><a class="nav-link" href="/help/scoring" rel="noopener" target="_blank">Package scoring and pub points</a></div></div><div class="nav-container nav-help-container-mobile foldable"><h3 class="foldable-button">Flutter <img class="foldable-icon" src="/static/hash-j60jq2j3/img/nav-mobile-foldable-icon.svg" alt="toggle folding of the section" width="13" height="6"/></h3><div class="foldable-content"><a class="nav-link" href="https://flutter.dev/using-packages/" rel="noopener" target="_blank">Using packages</a><a class="nav-link" href="https://flutter.dev/developing-packages/" rel="noopener" target="_blank">Developing packages and plugins</a><a class="nav-link" href="https://dart.dev/tools/pub/publishing" rel="noopener" target="_blank">Publishing a package</a></div></div><div class="nav-container nav-help-container-mobile foldable"><h3 class="foldable-button">Dart <img class="foldable-icon" src="/static/hash-j60jq2j3/img/nav-mobile-foldable-icon.svg" alt="toggle folding of the section" width="13" height="6"/></h3><div class="foldable-content"><a class="nav-link" href="https://dart.dev/guides/packages" rel="noopener" target="_blank">Using packages</a><a class="nav-link" href="https://dart.dev/tools/pub/publishing" rel="noopener" target="_blank">Publishing a package</a></div></div></nav><button class="-pub-theme-toggle" aria-label="light/dark theme toggle"></button></div><div id="banner-container"></div><main class="container"><div class="detail-wrapper -active -has-info-box"><div class="detail-banners"><a href="https://flutter.dev/docs/development/packages-and-plugins/favorites" rel="noopener" target="_blank" title="Package is a Flutter Favorite"><img class="ff-banner ff-banner-desktop displayed-in-light-theme" src="/static/hash-j60jq2j3/img/ff-banner-desktop-2x.png" alt="" width="150" height="218" role="presentation"/><img class="ff-banner ff-banner-desktop displayed-in-dark-theme" src="/static/hash-j60jq2j3/img/ff-banner-desktop-dark-2x.png" alt="" width="150" height="218" role="presentation"/><img class="ff-banner ff-banner-mobile displayed-in-light-theme" src="/static/hash-j60jq2j3/img/ff-banner-mobile-2x.png" alt="" width="94" height="116" role="presentation"/><img class="ff-banner ff-banner-mobile displayed-in-dark-theme" src="/static/hash-j60jq2j3/img/ff-banner-mobile-dark-2x.png" alt="" width="94" height="116" role="presentation"/></a></div><div class="detail-header -is-loose"><div class="detail-container"><div class="detail-header-outer-block"><div class="detail-header-content-block"><h1 class="title pub-monochrome-icon-hoverable">share_plus 10.1.4 <span class="pkg-page-title-copy"><img class="pub-monochrome-icon pkg-page-title-copy-icon filter-invert-on-dark" src="/static/hash-j60jq2j3/img/content-copy-icon.svg" alt="copy &quot;share_plus: ^10.1.4&quot; to clipboard" width="18" height="18" title="Copy &quot;share_plus: ^10.1.4&quot; to clipboard" data-copy-content="share_plus: ^10.1.4" data-ga-click-event="copy-package-version"/><div class="pkg-page-title-copy-feedback"><span class="code">share_plus: ^10.1.4</span> copied to clipboard</div></span></h1><div class="metadata">Published <span><a class="-x-ago" href="" title="Jan 14, 2025" role="button" data-timestamp="1736842165731">2 months ago</a></span> • <a class="-pub-publisher" href="/publishers/fluttercommunity.dev"><img class="-pub-publisher-shield filter-invert-on-dark" src="/static/hash-j60jq2j3/img/material-icon-verified.svg" alt="verified publisher" width="14" height="14" title="Published by a pub.dev verified publisher"/>fluttercommunity.dev</a><span class="package-badge" title="Package is compatible with Dart 3.">Dart 3 compatible</span></div><div class="detail-tags-and-like"><div class="detail-tags"><div class="-pub-tag-badge"><span class="tag-badge-main">SDK</span><a class="tag-badge-sub" href="/packages?q=sdk%3Aflutter" rel="nofollow" title="Packages compatible with Flutter SDK">Flutter</a></div><div class="-pub-tag-badge"><span class="tag-badge-main">Platform</span><a class="tag-badge-sub" href="/packages?q=platform%3Aandroid" rel="nofollow" title="Packages compatible with Android platform">Android</a><a class="tag-badge-sub" href="/packages?q=platform%3Aios" rel="nofollow" title="Packages compatible with iOS platform">iOS</a><a class="tag-badge-sub" href="/packages?q=platform%3Alinux" rel="nofollow" title="Packages compatible with Linux platform">Linux</a><a class="tag-badge-sub" href="/packages?q=platform%3Amacos" rel="nofollow" title="Packages compatible with macOS platform">macOS</a><a class="tag-badge-sub" href="/packages?q=platform%3Aweb" rel="nofollow" title="Packages compatible with Web platform">web</a><a class="tag-badge-sub" href="/packages?q=platform%3Awindows" rel="nofollow" title="Packages compatible with Windows platform">Windows</a></div></div><div class="detail-like"><button id="-pub-like-icon-button" class="mdc-icon-button" data-ga-click-event="toggle-like" aria-pressed="false" title="Like this package"><img class="mdc-icon-button__icon" src="/static/hash-j60jq2j3/img/like-inactive.svg" alt="liked status: inactive" width="18" height="18"/><img class="mdc-icon-button__icon mdc-icon-button__icon--on" src="/static/hash-j60jq2j3/img/like-active.svg" alt="liked status: active" width="18" height="18"/></button><span class="likes-count"><span id="likes-count">3.6k</span></span></div></div></div></div></div></div><div class="detail-container"><div class="detail-lead"><div class="detail-metadata-toggle"><div class="detail-metadata-toggle-icon">→</div><h3 class="detail-lead-title">Metadata</h3></div><p class="detail-lead-text">Flutter plugin for sharing content via the platform share UI, using the ACTION_SEND intent on Android and UIActivityViewController on iOS.</p><p class="detail-lead-more"><a class="detail-metadata-toggle">More...</a></p></div></div><div class="detail-body"><div class="detail-tabs"><div class="detail-tabs-wide-header"><div class="detail-container"><ul class="detail-tabs-header"><li class="detail-tab tab-button detail-tab-readme-title -active">Readme</li><li class="detail-tab tab-link detail-tab-changelog-title"><a href="/packages/share_plus/changelog" role="button">Changelog</a></li><li class="detail-tab tab-link detail-tab-example-title"><a href="/packages/share_plus/example" role="button">Example</a></li><li class="detail-tab tab-link detail-tab-installing-title"><a href="/packages/share_plus/install" role="button">Installing</a></li><li class="detail-tab tab-link detail-tab-versions-title"><a href="/packages/share_plus/versions" role="button">Versions</a></li><li class="detail-tab tab-link detail-tab-analysis-title"><a href="/packages/share_plus/score" role="button">Scores</a></li></ul></div></div><div class="detail-container detail-body-main"><div class="detail-tabs-content"><section class="tab-content detail-tab-readme-content -active markdown-body"><h1 id="share_plus" class="hash-header">share_plus <a href="#share_plus" class="hash-link">#</a></h1> <p><a href="https://github.com/fluttercommunity/plus_plugins/actions/workflows/share_plus.yaml" rel="ugc"><img src="https://github.com/fluttercommunity/plus_plugins/actions/workflows/share_plus.yaml/badge.svg" alt="share_plus"></a> <a href="https://pub.dev/packages/share_plus/score"><img src="https://img.shields.io/pub/points/share_plus?color=2E8B57&amp;label=pub%20points" alt="pub points"></a> <a href="https://pub.dev/packages/share_plus"><img src="https://img.shields.io/pub/v/share_plus.svg" alt="pub package"></a></p> <p><a href="https://flutter.dev/docs/development/packages-and-plugins/favorites"><img src="https://github.com/fluttercommunity/plus_plugins/raw/main/assets/flutter-favorite-badge.png" width="100"></a></p> <p>A Flutter plugin to share content from your Flutter app via the platform's share dialog.</p> <p>Wraps the <code>ACTION_SEND</code> Intent on Android, <code>UIActivityViewController</code> on iOS, or equivalent platform content sharing methods.</p> <h2 id="platform-support" class="hash-header">Platform Support <a href="#platform-support" class="hash-link">#</a></h2> <table> <thead> <tr> <th align="center">Method</th> <th align="center">Android</th> <th align="center">iOS</th> <th align="center">MacOS</th> <th align="center">Web</th> <th align="center">Linux</th> <th align="center">Windows</th> </tr> </thead> <tbody> <tr> <td align="center"><code>share</code></td> <td align="center">✅</td> <td align="center">✅</td> <td align="center">✅</td> <td align="center">✅</td> <td align="center">✅</td> <td align="center">✅</td> </tr> <tr> <td align="center"><code>shareUri</code></td> <td align="center">✅</td> <td align="center">✅</td> <td align="center"></td> <td align="center"></td> <td align="center"></td> <td align="center"></td> </tr> <tr> <td align="center"><code>shareXFiles</code></td> <td align="center">✅</td> <td align="center">✅</td> <td align="center">✅</td> <td align="center">✅</td> <td align="center"></td> <td align="center">✅</td> </tr> </tbody> </table> <p>Also compatible with Windows and Linux by using "mailto" to share text via Email.</p> <p>Sharing files is not supported on Linux.</p> <h2 id="requirements" class="hash-header">Requirements <a href="#requirements" class="hash-link">#</a></h2> <ul> <li>Flutter &gt;=3.22.0</li> <li>Dart &gt;=3.4.0 &lt;4.0.0</li> <li>iOS &gt;=12.0</li> <li>MacOS &gt;=10.14</li> <li>Android <code>compileSDK</code> 34</li> <li>Java 17</li> <li>Android Gradle Plugin &gt;=8.3.0</li> <li>Gradle wrapper &gt;=8.4</li> </ul> <h2 id="usage" class="hash-header">Usage <a href="#usage" class="hash-link">#</a></h2> <p>To use this plugin, add <code>share_plus</code> as a <a href="https://plus.fluttercommunity.dev/docs/overview" rel="ugc">dependency in your pubspec.yaml file</a>.</p> <p>Import the library.</p> <pre><code class="language-dart">import 'package:share_plus/share_plus.dart'; </code></pre> <h3 id="share-text" class="hash-header">Share Text <a href="#share-text" class="hash-link">#</a></h3> <p>Invoke the static <code>share()</code> method anywhere in your Dart code.</p> <pre><code class="language-dart">Share.share('check out my website https://example.com'); </code></pre> <p>The <code>share</code> method also takes an optional <code>subject</code> that will be used when sharing to email.</p> <pre><code class="language-dart">Share.share('check out my website https://example.com', subject: 'Look what I made!'); </code></pre> <p><code>share()</code> returns <code>status</code> object that allows to check the result of user action in the share sheet.</p> <pre><code class="language-dart">final result = await Share.share('check out my website https://example.com'); if (result.status == ShareResultStatus.success) { print('Thank you for sharing my website!'); } </code></pre> <h3 id="share-files" class="hash-header">Share Files <a href="#share-files" class="hash-link">#</a></h3> <p>To share one or multiple files, invoke the static <code>shareXFiles</code> method anywhere in your Dart code. The method returns a <code>ShareResult</code>. Optionally, you can pass <code>subject</code>, <code>text</code> and <code>sharePositionOrigin</code>.</p> <pre><code class="language-dart">final result = await Share.shareXFiles([XFile('${directory.path}/image.jpg')], text: 'Great picture'); if (result.status == ShareResultStatus.success) { print('Thank you for sharing the picture!'); } </code></pre> <pre><code class="language-dart">final result = await Share.shareXFiles([XFile('${directory.path}/image1.jpg'), XFile('${directory.path}/image2.jpg')]); if (result.status == ShareResultStatus.dismissed) { print('Did you not like the pictures?'); } </code></pre> <p>On web, this uses the <a href="https://web.dev/web-share/" rel="ugc">Web Share API</a> if it's available. Otherwise it falls back to downloading the shared files. See <a href="https://caniuse.com/web-share" rel="ugc">Can I Use - Web Share API</a> to understand which browsers are supported. This builds on the <a href="https://pub.dev/packages/cross_file"><code>cross_file</code></a> package.</p> <pre><code class="language-dart">Share.shareXFiles([XFile('assets/hello.txt')], text: 'Great picture'); </code></pre> <p>File downloading fallback mechanism for web can be disabled by setting:</p> <pre><code class="language-dart">Share.downloadFallbackEnabled = false; </code></pre> <h4 id="share-data">Share Data</h4> <p>You can also share files that you dynamically generate from its data using <a href="https://pub.dev/documentation/share_plus/latest/share_plus/XFile/XFile.fromData.html"><code>XFile.fromData</code></a>.</p> <p>To set the name of such files, use the <code>fileNameOverrides</code> parameter, otherwise the file name will be a random UUID string.</p> <pre><code class="language-dart">Share.shareXFiles([XFile.fromData(utf8.encode(text), mimeType: 'text/plain')], fileNameOverrides: ['myfile.txt']); </code></pre> <div class="markdown-alert markdown-alert-caution"> <p class="markdown-alert-title">Caution</p> <p>The <code>name</code> parameter in the <code>XFile.fromData</code> method is ignored in most platforms. Use <code>fileNameOverrides</code> instead.</p> </div> <h3 id="share-uri" class="hash-header">Share URI <a href="#share-uri" class="hash-link">#</a></h3> <p>iOS supports fetching metadata from a URI when shared using <code>UIActivityViewController</code>. This special method is only properly supported on iOS.</p> <pre><code class="language-dart">Share.shareUri(uri: uri); </code></pre> <h3 id="share-results" class="hash-header">Share Results <a href="#share-results" class="hash-link">#</a></h3> <p>All three methods return a <code>ShareResult</code> object which contains the following information:</p> <ul> <li><code>status</code>: a <code>ShareResultStatus</code></li> <li><code>raw</code>: a <code>String</code> describing the share result, e.g. the opening app ID.</li> </ul> <p>Note: <code>status</code> will be <code>ShareResultStatus.unavailable</code> if the platform does not support identifying the user action.</p> <h2 id="known-issues" class="hash-header">Known Issues <a href="#known-issues" class="hash-link">#</a></h2> <h3 id="sharing-data-created-with-xfilefromdata" class="hash-header">Sharing data created with XFile.fromData <a href="#sharing-data-created-with-xfilefromdata" class="hash-link">#</a></h3> <p>When sharing data created with <code>XFile.fromData</code>, the plugin will write a temporal file inside the cache directory of the app, so it can be shared.</p> <p>Although the OS should take care of deleting those files, it is advised, that you clean up this data once in a while (e.g. on app start).</p> <p>You can access this directory using <a href="https://pub.dev/packages/path_provider">path_provider</a> <a href="https://pub.dev/documentation/path_provider/latest/path_provider/getTemporaryDirectory.html">getTemporaryDirectory</a>.</p> <p>Alternatively, don't use <code>XFile.fromData</code> and instead write the data down to a <code>File</code> with a path before sharing it, so you control when to delete it.</p> <h3 id="mobile-platforms-android-and-ios" class="hash-header">Mobile platforms (Android and iOS) <a href="#mobile-platforms-android-and-ios" class="hash-link">#</a></h3> <h4 id="sharing-images--text">Sharing images + text</h4> <p>When attempting to share images with text, some apps may fail to properly accept the share action with them.</p> <p>For example, due to restrictions set up by Meta/Facebook this plugin isn't capable of sharing data reliably to Facebook related apps on Android and iOS. This includes eg. sharing text to the Facebook Messenger.</p> <p>If you require this functionality please check the native Facebook Sharing SDK (<a href="https://developers.facebook.com/docs/sharing" rel="ugc">https://developers.facebook.com/docs/sharing</a>) or search for other Flutter plugins implementing this SDK. More information can be found in <a href="https://github.com/fluttercommunity/plus_plugins/issues/413" rel="ugc">this issue</a>.</p> <p>Other apps may also give problems when attempting to share content to them. This is because 3rd party app developers do not properly implement the logic to receive share actions.</p> <p>We cannot warranty that a 3rd party app will properly implement the share functionality. Therefore, <strong>all bugs reported regarding compatibility with a specific app will be closed.</strong></p> <h4 id="localization-in-apple-platforms">Localization in Apple platforms</h4> <p>It could happen that the Share sheet appears with a different language, <a href="https://github.com/fluttercommunity/plus_plugins/issues/2696" rel="ugc">as reported here</a>.</p> <p>To fix this issue, you will have to setup the keys <code>CFBundleAllowMixedLocalizations</code> and <code>CFBundleDevelopmentRegion</code> in your project's <code>info.plist</code>.</p> <p>For more information check the <a href="https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html" rel="ugc">CoreFoundationKeys</a> documentation.</p> <h4 id="ipad">iPad</h4> <p><code>share_plus</code> requires iPad users to provide the <code>sharePositionOrigin</code> parameter.</p> <p>Without it, <code>share_plus</code> will not work on iPads and may cause a crash or letting the UI not responding.</p> <p>To avoid that problem, provide the <code>sharePositionOrigin</code>.</p> <p>For example:</p> <pre><code class="language-dart">// Use Builder to get the widget context Builder( builder: (BuildContext context) { return ElevatedButton( onPressed: () =&gt; _onShare(context), child: const Text('Share'), ); }, ), // _onShare method: final box = context.findRenderObject() as RenderBox?; await Share.share( text, subject: subject, sharePositionOrigin: box!.localToGlobal(Offset.zero) &amp; box.size, ); </code></pre> <p>See the <code>main.dart</code> in the <code>example</code> for a complete example.</p> <h2 id="learn-more" class="hash-header">Learn more <a href="#learn-more" class="hash-link">#</a></h2> <ul> <li><a href="https://pub.dev/documentation/share_plus/latest/share_plus/share_plus-library.html">API Documentation</a></li> </ul> </section></div></div></div><aside class="detail-info-box"><a class="packages-scores" href="/packages/share_plus/score"><div class="packages-score packages-score-like"><div class="packages-score-value -has-value"><span class="packages-score-value-number">3.67k</span><span class="packages-score-value-sign"></span></div><div class="packages-score-label">likes</div></div><div class="packages-score packages-score-health"><div class="packages-score-value -has-value"><span class="packages-score-value-number">160</span><span class="packages-score-value-sign"></span></div><div class="packages-score-label">points</div></div><div class="packages-score packages-score-downloads" title="Number of downloads of this package during the past 30 days"><div class="packages-score-value -has-value"><span class="packages-score-value-number">1.66M</span><span class="packages-score-value-sign"></span></div><div class="packages-score-label">downloads</div></div></a><h3 class="title">Publisher</h3><p><a href="/publishers/fluttercommunity.dev"><img class="-pub-publisher-shield filter-invert-on-dark" src="/static/hash-j60jq2j3/img/material-icon-verified.svg" alt="verified publisher" width="14" height="14" title="Published by a pub.dev verified publisher"/>fluttercommunity.dev</a></p><h3 class="title">Weekly Downloads</h3><div id="-weekly-downloads-sparkline" class="weekly-downloads-sparkline" data-widget="weekly-sparkline" data-weekly-sparkline-points="gBXzZwm/BQCSDwYAujUGAJwTBgAIugUA/Q4GAOEABgBbBgYAxbsFAEjmBQAYNAYAxesFAG82BQAqIQMAvp8CAOcYBQCq8QUAyrwFAHWTBQApAAYAPswFAAKABQBIJQUAxnUFAPh6BQDRKgUAgPAEAMhWBQCZ4AQA68QEAPnJBABwvwQAuC0FAN2oBACNuAQAFZsEAGS/BACgdwQA21IEANoRBABCogQAJVoEAGNUBAB4RgQAsQIEAC02BADoJAQAFccDAHuWAwCAOwQAZm8EAHkdBAA="></div><h3 class="title pkg-infobox-metadata">Metadata</h3><p>Flutter plugin for sharing content via the platform share UI, using the ACTION_SEND intent on Android and UIActivityViewController on iOS.</p><p><a class="link" href="https://github.com/fluttercommunity/plus_plugins" rel="ugc">Homepage</a><br/><a class="link" href="https://github.com/fluttercommunity/plus_plugins/tree/main/packages/share_plus/share_plus" rel="ugc">Repository (GitHub)</a><br/><a class="link" href="https://github.com/fluttercommunity/plus_plugins/labels/share_plus" rel="ugc">View&#47;report issues</a><br/><a class="link" href="https://github.com/fluttercommunity/plus_plugins/blob/main/CONTRIBUTING.md" rel="ugc">Contributing</a><br/></p><h3 class="title">Topics</h3><p><a class="topics-tag" href="/packages?q=topic%3Ashare" rel="nofollow">#share</a> <a class="topics-tag" href="/packages?q=topic%3Autils" rel="nofollow">#utils</a></p><h3 class="title">Documentation</h3><p><a class="link" href="/documentation/share_plus/latest/">API reference</a><br/></p><h3 class="title">License</h3><p><img class="inline-icon-img filter-invert-on-dark" src="/static/hash-j60jq2j3/img/material-icon-balance.svg" alt="" width="14" height="14" role="presentation"/>BSD-3-Clause (<a href="/packages/share_plus/license">license</a>)</p><h3 class="title">Dependencies</h3><p><a href="/packages/cross_file" title="^0.3.4+2">cross_file</a>, <a href="/packages/ffi" title="^2.1.2">ffi</a>, <a href="/packages/file" title="&gt;=6.1.4 &lt;8.0.0">file</a>, <a href="https://api.flutter.dev/">flutter</a>, <a href="https://api.flutter.dev/flutter/flutter_web_plugins/flutter_web_plugins-library.html">flutter_web_plugins</a>, <a href="/packages/meta" title="^1.8.0">meta</a>, <a href="/packages/mime" title="&gt;=1.0.4 &lt;3.0.0">mime</a>, <a href="/packages/share_plus_platform_interface" title="^5.0.2">share_plus_platform_interface</a>, <a href="/packages/url_launcher_linux" title="^3.1.1">url_launcher_linux</a>, <a href="/packages/url_launcher_platform_interface" title="^2.3.2">url_launcher_platform_interface</a>, <a href="/packages/url_launcher_web" title="^2.3.2">url_launcher_web</a>, <a href="/packages/url_launcher_windows" title="^3.1.2">url_launcher_windows</a>, <a href="/packages/web" title="^1.0.0">web</a>, <a href="/packages/win32" title="^5.5.3">win32</a></p><h3 class="title">More</h3><p><a href="/packages?q=dependency%3Ashare_plus" rel="nofollow">Packages that depend on share_plus</a></p></aside></div><script type="application/ld+json">{"@context":"http\u003a\u002f\u002fschema.org","@type":"SoftwareSourceCode","name":"share\u005fplus","version":"10.1.4","description":"share\u005fplus - Flutter plugin for sharing content via the platform share UI, using the ACTION\u005fSEND intent on Android and UIActivityViewController on iOS.","url":"https\u003a\u002f\u002fpub.dev\u002fpackages\u002fshare\u005fplus","dateCreated":"2020-04-20T18\u003a02\u003a15.748611Z","dateModified":"2025-01-14T08\u003a09\u003a25.731508Z","programmingLanguage":"Dart","image":"https\u003a\u002f\u002fpub.dev\u002fstatic\u002fimg\u002fpub-dev-icon-cover-image.png","license":"https\u003a\u002f\u002fpub.dev\u002fpackages\u002fshare\u005fplus\u002flicense"}</script></div><div class="detail-metadata"><h3 class="detail-metadata-title"><span class="detail-metadata-toggle">←</span> Metadata</h3><div class="detail-info-box"><a class="packages-scores" href="/packages/share_plus/score"><div class="packages-score packages-score-like"><div class="packages-score-value -has-value"><span class="packages-score-value-number">3.67k</span><span class="packages-score-value-sign"></span></div><div class="packages-score-label">likes</div></div><div class="packages-score packages-score-health"><div class="packages-score-value -has-value"><span class="packages-score-value-number">160</span><span class="packages-score-value-sign"></span></div><div class="packages-score-label">points</div></div><div class="packages-score packages-score-downloads" title="Number of downloads of this package during the past 30 days"><div class="packages-score-value -has-value"><span class="packages-score-value-number">1.66M</span><span class="packages-score-value-sign"></span></div><div class="packages-score-label">downloads</div></div></a><h3 class="title">Publisher</h3><p><a href="/publishers/fluttercommunity.dev"><img class="-pub-publisher-shield filter-invert-on-dark" src="/static/hash-j60jq2j3/img/material-icon-verified.svg" alt="verified publisher" width="14" height="14" title="Published by a pub.dev verified publisher"/>fluttercommunity.dev</a></p><h3 class="title">Weekly Downloads</h3><div id="-weekly-downloads-sparkline" class="weekly-downloads-sparkline" data-widget="weekly-sparkline" data-weekly-sparkline-points="gBXzZwm/BQCSDwYAujUGAJwTBgAIugUA/Q4GAOEABgBbBgYAxbsFAEjmBQAYNAYAxesFAG82BQAqIQMAvp8CAOcYBQCq8QUAyrwFAHWTBQApAAYAPswFAAKABQBIJQUAxnUFAPh6BQDRKgUAgPAEAMhWBQCZ4AQA68QEAPnJBABwvwQAuC0FAN2oBACNuAQAFZsEAGS/BACgdwQA21IEANoRBABCogQAJVoEAGNUBAB4RgQAsQIEAC02BADoJAQAFccDAHuWAwCAOwQAZm8EAHkdBAA="></div><h3 class="title pkg-infobox-metadata">Metadata</h3><p>Flutter plugin for sharing content via the platform share UI, using the ACTION_SEND intent on Android and UIActivityViewController on iOS.</p><p><a class="link" href="https://github.com/fluttercommunity/plus_plugins" rel="ugc">Homepage</a><br/><a class="link" href="https://github.com/fluttercommunity/plus_plugins/tree/main/packages/share_plus/share_plus" rel="ugc">Repository (GitHub)</a><br/><a class="link" href="https://github.com/fluttercommunity/plus_plugins/labels/share_plus" rel="ugc">View&#47;report issues</a><br/><a class="link" href="https://github.com/fluttercommunity/plus_plugins/blob/main/CONTRIBUTING.md" rel="ugc">Contributing</a><br/></p><h3 class="title">Topics</h3><p><a class="topics-tag" href="/packages?q=topic%3Ashare" rel="nofollow">#share</a> <a class="topics-tag" href="/packages?q=topic%3Autils" rel="nofollow">#utils</a></p><h3 class="title">Documentation</h3><p><a class="link" href="/documentation/share_plus/latest/">API reference</a><br/></p><h3 class="title">License</h3><p><img class="inline-icon-img filter-invert-on-dark" src="/static/hash-j60jq2j3/img/material-icon-balance.svg" alt="" width="14" height="14" role="presentation"/>BSD-3-Clause (<a href="/packages/share_plus/license">license</a>)</p><h3 class="title">Dependencies</h3><p><a href="/packages/cross_file" title="^0.3.4+2">cross_file</a>, <a href="/packages/ffi" title="^2.1.2">ffi</a>, <a href="/packages/file" title="&gt;=6.1.4 &lt;8.0.0">file</a>, <a href="https://api.flutter.dev/">flutter</a>, <a href="https://api.flutter.dev/flutter/flutter_web_plugins/flutter_web_plugins-library.html">flutter_web_plugins</a>, <a href="/packages/meta" title="^1.8.0">meta</a>, <a href="/packages/mime" title="&gt;=1.0.4 &lt;3.0.0">mime</a>, <a href="/packages/share_plus_platform_interface" title="^5.0.2">share_plus_platform_interface</a>, <a href="/packages/url_launcher_linux" title="^3.1.1">url_launcher_linux</a>, <a href="/packages/url_launcher_platform_interface" title="^2.3.2">url_launcher_platform_interface</a>, <a href="/packages/url_launcher_web" title="^2.3.2">url_launcher_web</a>, <a href="/packages/url_launcher_windows" title="^3.1.2">url_launcher_windows</a>, <a href="/packages/web" title="^1.0.0">web</a>, <a href="/packages/win32" title="^5.5.3">win32</a></p><h3 class="title">More</h3><p><a href="/packages?q=dependency%3Ashare_plus" rel="nofollow">Packages that depend on share_plus</a></p></div><p class="detail-lead-back"><a class="detail-metadata-toggle">Back</a></p></div><div id="-screenshot-carousel" class="carousel"><fab id="-carousel-prev" class="mdc-fab carousel-prev carousel-nav" data-mdc-auto-init="MDCRipple" title="Previous" data-ga-click-event="screenshot-carousel-prev-click" tabindex="0"><div class="mdc-fab__ripple"></div><img class="mdc-fab__icon" src="/static/hash-j60jq2j3/img/keyboard_arrow_left.svg" alt="previous" width="24" height="24" aria-hidden="true"/></fab><div id="-image-container" class="image-container"></div><fab id="-carousel-next" class="mdc-fab carousel-next carousel-nav" data-mdc-auto-init="MDCRipple" title="Next" data-ga-click-event="screenshot-carousel-next-click" tabindex="0"><div class="mdc-fab__ripple"></div><img class="mdc-fab__icon" src="/static/hash-j60jq2j3/img/keyboard_arrow_right.svg" alt="next" width="24" height="24" aria-hidden="true"/></fab><p id="-screenshot-description" class="screenshot-description"></p></div></main><footer class="site-footer"><a class="link" href="https://dart.dev/">Dart language</a><a class="link sep" href="/report?subject=package%3Ashare_plus&amp;url=https%3A%2F%2Fpub.dev%2Fpackages%2Fshare_plus">Report package</a><a class="link sep" href="/policy">Policy</a><a class="link sep" href="https://www.google.com/intl/en/policies/terms/">Terms</a><a class="link sep" href="https://developers.google.com/terms/">API Terms</a><a class="link sep" href="/security">Security</a><a class="link sep" href="https://www.google.com/intl/en/policies/privacy/">Privacy</a><a class="link sep" href="/help">Help</a><a class="link icon sep" href="/feed.atom"><img class="inline-icon" src="/static/hash-j60jq2j3/img/rss-feed-icon.svg" alt="RSS" width="20" height="20" title="RSS/atom feed"/></a><a class="link icon github_issue" href="https://github.com/dart-lang/pub-dev/issues/new"><img class="inline-icon" src="/static/hash-j60jq2j3/img/bug-report-white-96px.png" alt="bug report" width="20" height="20" title="Report an issue with this site"/></a></footer><script src="/static/hash-j60jq2j3/highlight/highlight-with-init.js" defer="defer"></script></body></html>

Pages: 1 2 3 4 5 6 7 8 9 10