Skip to content

Commit f4d2e70

Browse files
feat: Allow desktops compatibilities
- Allow linux - Fix Windows #23
1 parent f47c3c1 commit f4d2e70

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/src/form_builder_file_picker.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,10 @@ class _FormBuilderFilePickerState
198198
FilePickerResult? resultList;
199199

200200
try {
201-
if (kIsWeb || await Permission.storage.request().isGranted) {
201+
if (kIsWeb ||
202+
Platform.isLinux ||
203+
Platform.isWindows ||
204+
await Permission.storage.request().isGranted) {
202205
resultList = await FilePicker.platform.pickFiles(
203206
type: fileType,
204207
allowedExtensions: widget.allowedExtensions,

0 commit comments

Comments
 (0)