miguelpruivo / flutter_file_picker

File picker plugin for Flutter, compatible with mobile (iOS & Android), Web, Desktop (Mac, Linux, Windows) platforms with Flutter Go support.
MIT License
1.35k stars 672 forks source link

Sample code hang when using save button #1607

Closed Nimo11 closed 3 weeks ago

Nimo11 commented 1 month ago

Sample code hang when trying to save.

There is no bytes when calling save method.

Future _saveFile() async { _resetState(); try { String? fileName = await FilePicker.platform.saveFile( allowedExtensions: (_extension?.isNotEmpty ?? false) ? _extension?.replaceAll(' ', '').split(',') : null, type: _pickingType, dialogTitle: _dialogTitleController.text, fileName: _defaultFileNameController.text, initialDirectory: _initialDirectoryController.text, lockParentWindow: _lockParentWindow, bytes: Uint8List(100)); <-- missing paramters

Thanks for your job

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 7 days with no activity.

github-actions[bot] commented 3 weeks ago

This issue was closed because it has been inactive for 14 days since being marked as stale.