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,
|
compressionQuality: 0,
|
||||||
allowMultiple: allowMultiple,
|
allowMultiple: allowMultiple,
|
||||||
type: type.filePickerType,
|
type: type.filePickerType,
|
||||||
allowedExtensions: type.extensions?.toList(),
|
allowedExtensions: type.filePickerType == FileType.custom
|
||||||
|
? type.extensions?.toList()
|
||||||
|
: null,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
return result?.xFiles ?? [];
|
return result?.xFiles ?? [];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue