plus_plugins
plus_plugins copied to clipboard
[Bug]: Share_plus does not work correctly on Windows 11 Home Edition
Platform
Windows 11 Home Edition 24H2
Plugin
share_plus
Version
11.1.0
Flutter SDK
3.29.1
Steps to reproduce
The share_plus component has a problem in Windows 11 Home Edition, where the sharing pop-up always shows try that again we could not ..... However, in Windows 11 Professional Edition, there is no problem, and the system sharing component can be called correctly in this version
Code Sample
fileName = exportSuccess["fileName"];
filePath = exportSuccess["filePath"];
final files = <XFile>[];
ShareResult shareResult;
// String covertPath = FileUtils
// .convertToWindowsDoubleBackslash(
// filePath);
files.add(
XFile("D:\\ky\\a.pdf", name: fileName));
shareResult =
await SharePlus.instance.share(
ShareParams(
title: "xx",
files: files,
sharePositionOrigin:
box!.localToGlobal(Offset.zero) &
box.size,
excludedCupertinoActivities: [
CupertinoActivityType.airDrop
],
),
);
Logs
no exception
Flutter Doctor
[√] Flutter (Channel stable, 3.29.1, on Microsoft Windows [版本 10.0.26100.6584], locale zh-CN)
[√] Windows Version (11 家庭中文版 64-bit, 24H2, 2009)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.9.6)
[√] Android Studio (version 2023.2)
[√] 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
My version number for Windows 11 Professional is 23H2 (there are no issues with this version), but due to hardware limitations, I am unable to upgrade to 24H2. Can someone test it using the Windows 11 24H2 version of the system? I would like to confirm if the issue is caused by the system version. Thank you very much