Skip to content
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

[Bug]: With Share.shareXFiles on flutter windows version, when sharing using outlook email, both subject and text fields are empty in email #3424

Open
8 tasks done
stevenw20191 opened this issue Jan 7, 2025 · 1 comment
Labels
bug Something isn't working triage

Comments

@stevenw20191
Copy link

Platform

Windows 10

Plugin

share_plus

Version

7.2.2

Flutter SDK

3.16.9

Steps to reproduce

  1. use Share.shareXFiles to share files with subject and text.
  2. When sharing, select outlook email,
  3. attached file successfully, but email subject and text as empty

image

Code Sample

await Share.shareXFiles(<XFile>[XFile(shareFilePath)],
        subject: 'log data',
        text: 'Sent time',
        sharePositionOrigin: rect);

Logs

[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Enterprise 2022 17.6.3)
[√] Android Studio (version 2022.3)
[√] Connected device (3 available)
[√] Network resources

• No issues found!

Flutter Doctor

$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.16.9, on Microsoft Windows [Version 10.0.19045.5247], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Enterprise 2022 17.6.3)
[√] Android Studio (version 2022.3)
[√] Connected device (3 available)
[√] Network resources

• 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
@stevenw20191 stevenw20191 added bug Something isn't working triage labels Jan 7, 2025
@miquelbeltran
Copy link
Member

It could be that this is solved with the work in this PR #3404 which is still not merged.

At the end, this all depends on if the email app supports passing more than one setting. share_plus does not call to the email app (Outlook) directly, but rather it either uses the Windows share mechanism or it uses mailto:, then it is handled by the operating system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

2 participants