Skip to content
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

Sample code hang when using save button #1607

Open
Nimo11 opened this issue Oct 8, 2024 · 0 comments
Open

Sample code hang when using save button #1607

Nimo11 opened this issue Oct 8, 2024 · 0 comments
Labels
new issue An issue that hasn't yet been seen from the maintainer

Comments

@Nimo11
Copy link

Nimo11 commented Oct 8, 2024

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

@Nimo11 Nimo11 added the new issue An issue that hasn't yet been seen from the maintainer label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new issue An issue that hasn't yet been seen from the maintainer
Projects
None yet
Development

No branches or pull requests

1 participant