Skip to content

Commit eee7332

Browse files
Merge pull request #65 from divan/main
Fix incorrect kIsWeb usage instead of withData
2 parents 7311405 + 94120ef commit eee7332

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/form_builder_file_picker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ class _FormBuilderFilePickerState extends FormBuilderFieldDecorationState<
243243
child: (imageFileExts.contains(
244244
files[index].extension!.toLowerCase()) &&
245245
widget.previewImages)
246-
? kIsWeb
246+
? widget.withData
247247
? Image.memory(files[index].bytes!,
248248
fit: BoxFit.cover)
249249
: Image.file(File(files[index].path!),

0 commit comments

Comments
 (0)