Skip to content

[Bug]: Share_plus does not work correctly on Windows 11 Home Edition #3687

@paladinghub

Description

@paladinghub

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

Image

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

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions