You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trigger the shareLink function by using a button in the app
Dismiss the share drawer by tapping outside of it
Code Sample
final shareLink =Uri.parse("www.github.com");
final box = context.findRenderObject() asRenderBox?;
// shareUri seems to work better than share, but does not allow to set a subject for mailfinal shareResult =awaitShare.shareUri(
shareLink,
sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,
);
Logs
Can't run flutter run --verbose on a deployed web app, I see the following error message:Exception: Navigator.share() failed: The operation was aborted
Flutter Doctor
$ flutter doctor -v
[√] Flutter (Channel stable, 3.19.6, on Microsoft Windows [Version 10.0.19045.4291], locale de-DE)
• Flutter version 3.19.6 on channel stable at C:\Users\kbublitz\Tools\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 54e66469a9 (3 weeks ago), 2024-04-17 13:08:03 -0700
• Engine revision c4cd48e186
• Dart version 3.3.4
• DevTools version 2.31.1
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] VS Code (version 1.90.0-insider)
• VS Code at C:\Users\kbublitz\AppData\Local\Programs\Microsoft VS Code Insiders
• Flutter extension version 3.89.20240501
[√] Connected device (2 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 124.0.6367.119
• Edge (web) • edge • web-javascript • Microsoft Edge 124.0.2478.67
[√] Network resources
• All expected network resources are available.
• No issues found!
Checklist before submitting a bug
I searched issues in this repository and couldn't find such bug/problem
I Google'd a solution and I couldn't find it
I searched on StackOverflow for a solution and I couldn't find it
I read the README.md file of the plugin
I'm using the latest version of the plugin
All dependencies are up to date with flutter pub upgrade
I did a flutter clean
I tried running the example project
The text was updated successfully, but these errors were encountered:
Platform
Android 12
Plugin
share_plus
Version
9.0.0
Flutter SDK
3.19.6
Steps to reproduce
Code Sample
Logs
Flutter Doctor
Checklist before submitting a bug
flutter pub upgrade
flutter clean
The text was updated successfully, but these errors were encountered: