Skip to content

Commit

Permalink
Merge pull request #65 from divan/main
Browse files Browse the repository at this point in the history
Fix incorrect kIsWeb usage instead of withData
  • Loading branch information
deandreamatias authored Jun 14, 2023
2 parents 7311405 + 94120ef commit eee7332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/form_builder_file_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class _FormBuilderFilePickerState extends FormBuilderFieldDecorationState<
child: (imageFileExts.contains(
files[index].extension!.toLowerCase()) &&
widget.previewImages)
? kIsWeb
? widget.withData
? Image.memory(files[index].bytes!,
fit: BoxFit.cover)
: Image.file(File(files[index].path!),
Expand Down

0 comments on commit eee7332

Please sign in to comment.