-
Notifications
You must be signed in to change notification settings - Fork 666
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
saveFile() not working #832
Comments
CC: @philenius |
hey @BoHellgren, I'm sorry to disappoint you, but this functionality is only supported on desktop platforms (Linux, macOS, and Windows). In issue #799, @miguelpruivo and I thought that there is no need to implement this functionality on Android / iOS / web. The docs of /// Opens a save file dialog which lets the user select a file path and a file
/// name to save a file.
... blablabla
/// This method is only available on desktop platforms (Linux, macOS &
/// Windows).
... blablabla
/// Returns [null] if aborted. Returns a [Future<String?>] which resolves to
/// the absolute path of the selected file, if the user selected a file.
Future<String?> saveFile({
String? dialogTitle,
String? fileName,
FileType type = FileType.any,
List<String>? allowedExtensions,
})
... |
@philenius sorry, my bad, didn't noticed that the OP was referring to Android. Yes, @BoHellgren, like @philenius pointed out, this isn't supported on mobile devices as of now. I'm not sure if it will be even supported at all. I'm sorry for any inconvenience. |
I tried the new saveFile API in 4.1.0:
But I get this error message, both running on Android and on Web:
I also tested pickFiles and it works as expected:
Why do I get the "not implemented" message on saveFile?
The text was updated successfully, but these errors were encountered: