Skip to content

Commit c6ecd4a

Browse files
committed
fix: bytes not work on linux
resolve: #1893
1 parent 3fd581f commit c6ecd4a

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)