Skip to content

Commit fe37124

Browse files
authored
Merge pull request #1895 from Decodetalkers/fix_bytes_not_work_on_linux
fix: bytes not work on linux
2 parents 3fd581f + c6ecd4a commit fe37124

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/src/linux/file_picker_linux.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,10 @@ class FilePickerLinux extends FilePicker {
193193
}
194194

195195
final savedFilePaths = saveUris.map((uri) => uri.toFilePath()).toList();
196+
final savedFilePath = savedFilePaths.firstOrNull;
196197

197-
return savedFilePaths.firstOrNull;
198+
await saveBytesToFile(bytes, savedFilePath);
199+
200+
return savedFilePath;
198201
}
199202
}

0 commit comments

Comments
 (0)