chore: Follow up file selector
This commit is contained in:
parent
fe06f2efb3
commit
cc928c64bc
1 changed files with 3 additions and 1 deletions
|
|
@ -18,7 +18,9 @@ Future<List<XFile>> selectFiles(
|
|||
compressionQuality: 0,
|
||||
allowMultiple: allowMultiple,
|
||||
type: type.filePickerType,
|
||||
allowedExtensions: type.extensions?.toList(),
|
||||
allowedExtensions: type.filePickerType == FileType.custom
|
||||
? type.extensions?.toList()
|
||||
: null,
|
||||
),
|
||||
);
|
||||
return result?.xFiles ?? [];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue