fix: assert on uploading image on macos (#5272)

This commit is contained in:
Lucas.Xu 2024-05-07 09:11:35 +08:00 committed by GitHub
parent c4f6703b76
commit 287c69a4fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,7 @@ class UploadImageFileWidget extends StatelessWidget {
// on desktop, the users can pick a image file from folder
final result = await getIt<FilePickerService>().pickFiles(
dialogTitle: '',
type: FileType.image,
type: FileType.custom,
allowedExtensions: allowedExtensions,
);
onPickFile(result?.files.firstOrNull?.path);