To avoid that problem, provide the sharePositionOrigin.įor example: // Use Builder to get the widget contextįinal box = context.findRenderObject() as RenderBox? Without it, share_plus will not work on iPads and may cause a crash or Share_plus requires iPad users to provide the sharePositionOrigin parameter. More information can be found in this issue. If you require this functionality please check the native Facebook Sharing SDK ( ) or search for other Flutter plugins implementing this SDK. #SHAREPLUS FLUTTER ANDROID#Plus plugins documentation Known Issues # Mobile platforms (Android and iOS) # Facebook limitations (WhatsApp, Instagram, Facebook Messenger)ĭue to restrictions set up by Facebook this plugin isn't capable of sharing data reliably to Facebook related apps on Android and iOS. Share.shareXFiles(, text: 'Great picture') Ĭheck out our documentation website to learn more. See Can I Use - Web Share API to understand Otherwise it falls back to downloading the shared files. On web you can use SharePlus.shareXFiles(). Optionally you can also pass in text and subject. To share one or multiple files invoke the static shareFiles method anywhere in your Dart code. Share.share('check out my website ', subject: 'Look what I made!') The share method also takes an optional subject that will be used when Then invoke the static share method anywhere in your Dart code. import 'package:share_plus/share_plus.dart' To use this plugin, add share_plus as a dependency in your pubspec.yaml file. Sharing files is not supported on Windows and Linux. Wraps the ACTION_SEND Intent on Android and UIActivityViewControllerĪlso compatible with Windows and Linux by using "mailto" to share text via Email. A Flutter plugin to share content from your Flutter app via the platform's
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |