Closed richard457 closed 2 weeks ago
Hello, I have no idea, honestly, but a couple of things to consider nevertheless:
XFile.fromData
and instead write down the file in a folder you control. This shold be mentioned in the README.md
file. The name
parameter in XFile
does nothing, only works on web, this is a known issue in the XFile
dart package.shareXFile()
doesn't work at all on Linux. Also mentioned on the README file. Saying this because you have || Platform.isLinux
in the example code.This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days
Platform
Windows 11
Plugin
share_plus
Version
share_plus: ^9.0.0
Flutter SDK
3.22
Steps to reproduce
Future shareFileAsAttachment(String filePath) async {
final now = DateTime.now();
final formattedDate = DateFormat('yyyy-MM-dd').format(now);
final file = File(filePath);
final fileName = p.basename(file.path);
}
Code Sample
Logs
Flutter Doctor
Checklist before submitting a bug
flutter pub upgrade
flutter clean