Skip to content

Commit 94120ef

Browse files
committed
Fix incorrect kIsWeb usage instead of withData
1 parent 7311405 commit 94120ef

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)