Skip to content

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

@VersaDesenvolvimento

Description

@VersaDesenvolvimento

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

  • 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