I want to make an entirely client-side text editor. Unfortunately, dart:io doesn’t work client-side. I want to save text the user has typed to a file on the his machine. He can have full control of where it saves or whatever hoops I have to jump through for it to be considered safe. Is it possible to write a file to his machine?
I want to make an entirely client-side text editor. Unfortunately, dart:io doesn’t work client-side
Share
See this equivalent answer for JavaScript:
Write local file with jQuery or Javascript
This is to protect your machine.
One way that I have seen this worked around is to use something like dropbox or google drive api, so that your app “edits” a file on dropbox or gdrive, which is then synced onto your local disk by the dropbox or gdrive client. Eg: SourceKit