plus_plugins icon indicating copy to clipboard operation
plus_plugins copied to clipboard

[share_plus]: SharePlus.instance.share doesn't work on Windows, but Share.shareXFiles works fine

Open VersaDesenvolvimento opened this issue 6 months ago • 3 comments

Platform

Windows 10/11

Plugin

share_plus

Version

11.0.0

Flutter SDK

3.32.5

Steps to reproduce

share_plus: ^10.1.4 Works perfectly on Windows 10/11

Image

share_plus: ^11.0.0 Does NOT work on Windows 10/11

Code Sample

// share_plus: ^10.1.4
await Share.shareXFiles([xFile], text: "");

// share_plus: ^11.0.0
      await SharePlus.instance.share(
        ShareParams(
          files: [xFile],
          sharePositionOrigin: Rect.fromCircle(
            radius: 50,
            center: Offset.zero,
          ),
        ),
      );

Logs

//

Flutter Doctor

[√] Flutter (Channel stable, 3.32.5, on Microsoft Windows [versÆo 10.0.26100.4349], locale pt-BR) [547ms]
    • Flutter version 3.32.5 on channel stable at C:\Programas\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision fcf2c11572 (2 weeks ago), 2025-06-24 11:44:07 -0700
    • Engine revision dd93de6fb1
    • Dart version 3.8.1
    • DevTools version 2.45.1

[√] Windows Version (11 Pro 64-bit, 24H2, 2009) [6,4s]

[√] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [9,1s]
    • Android SDK at C:\Users\frede\AppData\Local\Android\sdk
    • Platform android-36, build-tools 36.0.0
    • Java binary at: C:\Programas\Android Studio\jbr\bin\java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13368085-b895.109)
    • All Android licenses accepted.

[√] Chrome - develop for the web [172ms]
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.14.8) [171ms]
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.14.36301.6
    • Windows 10 SDK version 10.0.26100.0

[√] Android Studio (version 2024.3.2) [21ms]
    • Android Studio at C:\Programas\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13368085-b895.109)

[√] Connected device (3 available) [224ms]
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [versÆo 10.0.26100.4349]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 138.0.7204.96
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 138.0.3351.65

[√] Network resources [982ms]
    • All expected network resources are available.

• No issues found!

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

VersaDesenvolvimento avatar Jul 09 '25 17:07 VersaDesenvolvimento

I confirm, on v11.1.0 is not working on Windows either. I get this popup :

Image

2math avatar Aug 12 '25 14:08 2math

update code : Platform.isWindows

Image

humam-alBasha avatar Sep 03 '25 18:09 humam-alBasha

Any news on that issue? will it be fixed soon?

sevoster avatar Oct 30 '25 07:10 sevoster