You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is mentioned in the README that "you can call saveAs() only available for android and iOS & macOS at the moment". There is a simple workaround, but ideally this would be addressed inside the plugin itself.
final filePath =awaitFileSaver.instance.saveAs(
name: fileName,
bytes:Uint8List(),
ext:".$extension",
mimeType: mimeType,
);
if (filePath ==null) {
// cancelled promptreturn;
}
// TODO FileSaver.instance.saveAs() as of 0.2.13 on Windows// only prompts the user for the desired file location, but does not write// the file passed in.if (Platform.isWindows) {
final file =File(filePath);
await file.writeAsBytes(fileModel.data);
}
If the maintainers need some help with implementing this, I have some time to address this issue.
`
`
This code works correctly for Android
But for the Windows and web version, the file is not saved and does not give any error
The text was updated successfully, but these errors were encountered: