@@ -58,7 +58,7 @@ class FormBuilderFilePicker
58
58
/// Whether to allow file compression
59
59
final bool allowCompression;
60
60
61
- final int ? compressionQuality;
61
+ final int compressionQuality;
62
62
63
63
/// If [withData] is set, picked files will have its byte data immediately available on memory as [Uint8List]
64
64
/// which can be useful if you are picking it for server upload or similar.
@@ -103,7 +103,7 @@ class FormBuilderFilePicker
103
103
this .allowedExtensions,
104
104
this .onFileLoading,
105
105
this .allowCompression = true ,
106
- this .compressionQuality,
106
+ this .compressionQuality = 30 ,
107
107
this .customFileViewerBuilder,
108
108
this .customTypeViewerBuilder})
109
109
: super (
@@ -183,7 +183,7 @@ class _FormBuilderFilePickerState extends FormBuilderFieldDecorationState<
183
183
type: fileType,
184
184
allowedExtensions: widget.allowedExtensions,
185
185
allowCompression: widget.allowCompression,
186
- compressionQuality: widget.compressionQuality ?? 30 ,
186
+ compressionQuality: widget.compressionQuality,
187
187
onFileLoading: widget.onFileLoading,
188
188
allowMultiple: widget.allowMultiple,
189
189
withData: widget.withData,
0 commit comments