Skip to content

[Bug]:UnimplementedError: shareFiles() has not been implemented on Windows #913

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
joeljoy opened this issue Jun 17, 2022 · 1 comment
Closed
Labels
bug Something isn't working triage

Comments

@joeljoy
Copy link

joeljoy commented Jun 17, 2022

Platform

Windows

Plugin

share_plus

Version

4.0.8

Flutter SDK

3.0.1

Steps to reproduce

Invoke the following function when the app is running on Windows

Share.shareFiles([filePath]);

Code Sample

String filePath = "file path";
Share.shareFiles([filePath],
        sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size);

Logs

UnimplementedError: UnimplementedError: shareFiles() has not been implemented on Windows.
  File "share_plus_windows.dart", line 53, col 5, in ShareWindows.shareFiles
  File "share_plus.dart", line 76, col 22, in Share.shareFiles
  File "whatsapp_view.dart", line 56, col 11, in shareFile

Flutter Doctor

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.0.2, on Microsoft Windows [Version 10.0.19044.1288], locale en-IN)
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    X cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.2.4)
[√] Android Studio (version 2021.2)
[√] VS Code (version 1.68.1)
[√] Connected device (3 available)
[√] HTTP Host Availability
@joeljoy joeljoy added bug Something isn't working triage labels Jun 17, 2022
@Coronon
Copy link
Contributor

Coronon commented Jun 18, 2022

This is kind of a duplicate of the "closed as stale" #333. We do not implement sharing files for windows because people generally just use other means of providing access to files for foreign applications. Windows programs are very heterogeneous.

@joeljoy joeljoy closed this as completed Jun 19, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

2 participants