mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: assert on uploading image on macos (#5272)
This commit is contained in:
parent
c4f6703b76
commit
287c69a4fb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user