Skip to content

[Bug]: Sharing an image on Windows is not working #3510

Open
@rockingdice

Description

@rockingdice

Platform

Windows

Plugin

share_plus

Version

10.1.4

Flutter SDK

3.29.0

Steps to reproduce

share an image file and observe the poping window. it's showing a loading circle indicator then dismissed. The second time it won't show anymore.

Code Sample

Use this code to share an image file on the disk:

                Share.shareXFiles(
                      [XFile(path)], subject: "some subjects",
                    );

Logs

No useful logs

Flutter Doctor

[√] Flutter (Channel stable, 3.29.0, on Microsoft Windows [版本 10.0.19045.5487], locale zh-CN) [258ms]
    • Flutter version 3.29.0 on channel stable at C:\Users\Administrator\fvm\versions\3.29.0
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 35c388afb5 (3 weeks ago), 2025-02-10 12:48:41 -0800
    • Engine revision f73bfc4522
    • Dart version 3.7.0
    • DevTools version 2.42.2

[√] Windows Version (10 专业版 64-bit, 22H2, 2009) [674ms]

[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [1,632ms]
    • Android SDK at C:\Users\Administrator\AppData\Local\Android\sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: C:\Program Files\Android\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.5+-13047016-b750.29)
    • All Android licenses accepted.

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

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.12.2) [54ms]
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.12.35521.163
    • Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2024.2) [10ms]
    • Android Studio at C:\Program Files\Android\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.5+-13047016-b750.29)

[√] VS Code (version 1.95.3) [9ms]
    • VS Code at C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.104.0

[√] Connected device (4 available) [185ms]
    • ALN AL80 (mobile) • 2MM0223B23004971 • android-arm64  • Android 12 (API 31)
    • Windows (desktop) • windows          • windows-x64    • Microsoft Windows [版本 10.0.19045.5487]
    • Chrome (web)      • chrome           • web-javascript • Google Chrome 133.0.6943.142
    • Edge (web)        • edge             • web-javascript • Microsoft Edge 133.0.3065.82

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

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