google / flutter-desktop-embedding

Experimental plugins for Flutter for Desktop
Apache License 2.0
7.1k stars 607 forks source link

Save File with XFile return blank file in MacOS #842

Closed MasIzzudin closed 3 years ago

MasIzzudin commented 3 years ago

I don't know if this is a bugs or i missed something, but i try to follow the code from example how to save text. even i copy paste all the code from example, but when it saving the file, it is not return with format file, it just blank file

Screen Shot 2021-03-23 at 01 54 17 Screen Shot 2021-03-23 at 01 55 16 Screen Shot 2021-03-23 at 01 55 40 Screen Shot 2021-03-23 at 01 57 31 Screen Shot 2021-03-23 at 01 58 00 Screen Shot 2021-03-23 at 01 58 12

stuartmorgan commented 3 years ago

The only part of this flow that the plugin implementation in this repository is responsible for is showing the dialog and returning the selected path to the main plugin. Based on your screenshots, that step is working since you have a dialog, and a file in the right place. Given that, there's no bug in file_selector_macos here.

If you have issues with file_selector, or cross_file, you'll need to file issues against those packages; neither is part of this repository.