fluttercommunity / fluttercommunity/plus_plugins
[share_plus]: SharePlus.instance.share doesn't work on Windows, but Share.shareXFiles works fine
- Lingua principale
- Dart
- Stelle
- 1.9k
- Fork
- 1.3k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### 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
share_plus: ^11.0.0
Does NOT work on Windows 10/11
### Code Sample
```dart
// 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
```shell
//
```
### Flutter Doctor
```shell
[√] 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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con l’implementazione Windows di share_plus e confronta i punti di ingresso SharePlus.instance.share e Share.shareXFiles usando il progetto di esempio su Windows 10/11. Riproduci il report con i ShareParams e l’input del file forniti, quindi verifica che l’API dell’istanza condivida correttamente i file, come fa la API precedente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- dart, flutter
- Ambito
- desktop
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Attiva
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 55/100