Open zhahouming opened 1 month ago
I am facing the same problem on windows
ShareResultStatus.unavailable
is an expected result, it means that the share result cannot be determined.
Is there any other issue you are facing? Otherwise, I will close this ticket.
I am using the exact same code to share an image that I generated. shareXfiles is working perfectly on IOS Mac And Android. Only Windows gets me this message: ShareResultStatus.unavailable .
is there any explanation or can I do anything to fix it, please?
As explained, ShareResultStatus.unavailable
is an expected output. Can you provide logs and explain exactly what happens?
First I am taking a screenshot through the package: ScreenShot :
final image = await _screenshotController.captureFromLongWidget( context: context, InheritedTheme.captureAll( context, FileMatchingContent( ), to: context, ), pixelRatio: 2, );
after that: iam using share_plus to share this image :
final Size size = MediaQuery.of(context).size; final results = await Share.shareXFiles( sharePositionOrigin: Rect.fromLTWH( 0, 0, size.width, size.height / 2, ), [ XFile.fromData( image, mimeType: "image/png", ), ], );
after that :
print(results.status);
===============================
I don't have any log except the print statement: ShareResultStatus.unavailable
this code works on every platform except windows.
Platform
Windows
Plugin
share_plus
Version
10.0.1
Flutter SDK
3.22.1
Steps to reproduce
I called
Share.shareXFiles
in Windows 11, but the result returnedShareResultStatus.unavailable
.Code Sample
No response
Logs
Flutter Doctor
Checklist before submitting a bug
flutter pub upgrade
flutter clean