plus_plugins
plus_plugins copied to clipboard
[Bug]: [share_plus] Doesn't work on the web platform: opens a new tab to about:blank
Platform
web
Plugin
share_plus
Version
7.2.1
Flutter SDK
3.13.6
Steps to reproduce
Just try to share text on the web platform (Crhome). And you closed the issue https://github.com/fluttercommunity/plus_plugins/issues/190 in vain, the bug is still happens.
Code Sample
final renderBox = _shareButtonKey.currentContext
?.findRenderObject() as RenderBox?;
final shareButtonRect = renderBox == null
? null
: renderBox.localToGlobal(Offset.zero) & renderBox.size;
final id = widget.id;
final title = _model?.title ?? '';
final link = 'https://online.schtandart.com/node/$id';
final result = await Share.shareWithResult(l10n.shareNewsMessage(title, link),
sharePositionOrigin: shareButtonRect,
);
print('!!!=== ${result.status} ${result.raw}');
Logs
!!!=== ShareResultStatus.unavailable dev.fluttercommunity.plus/share/unavailable
Flutter Doctor
[✓] Flutter (Channel stable, 3.13.6, on macOS 14.0 23A344 darwin-x64, locale ru-RU)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.68.1)
[✓] Connected device (3 available)
[✓] Network resources
Checklist before submitting a bug
- [X] I searched issues in this repository and couldn't find such bug/problem
- [X] I Google'd a solution and I couldn't find it
- [X] I searched on StackOverflow for a solution and I couldn't find it
- [X] I read the README.md file of the plugin
- [X] I'm using the latest version of the plugin
- [X] All dependencies are up to date with
flutter pub upgrade - [X] I did a
flutter clean - [X] I tried running the example project
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days