We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb7fc6f commit c14795dCopy full SHA for c14795d
lib/src/form_builder_file_picker.dart
@@ -158,7 +158,7 @@ class _FormBuilderFilePickerState
158
resultList = await FilePicker.platform.pickFiles(
159
type: widget.type,
160
allowedExtensions: widget.allowedExtensions,
161
- allowCompression: widget.allowCompression,
+ allowCompression: widget.allowCompression ?? true,
162
onFileLoading: widget.onFileLoading,
163
allowMultiple: widget.allowMultiple,
164
withData: widget.withData,
@@ -239,7 +239,7 @@ class _FormBuilderFilePickerState
239
width: double.infinity,
240
color: Colors.white.withOpacity(.8),
241
child: Text(
242
- files[index].name!,
+ files[index].name,
243
style: theme.textTheme.caption,
244
maxLines: 2,
245
overflow: TextOverflow.clip,
0 commit comments