File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ class FormBuilderFilePicker
58
58
/// Whether to allow file compression
59
59
final bool allowCompression;
60
60
61
+ final int compressionQuality;
62
+
61
63
/// If [withData] is set, picked files will have its byte data immediately available on memory as [Uint8List]
62
64
/// which can be useful if you are picking it for server upload or similar.
63
65
final bool withData;
@@ -101,6 +103,7 @@ class FormBuilderFilePicker
101
103
this .allowedExtensions,
102
104
this .onFileLoading,
103
105
this .allowCompression = true ,
106
+ this .compressionQuality = 30 ,
104
107
this .customFileViewerBuilder,
105
108
this .customTypeViewerBuilder})
106
109
: super (
@@ -180,6 +183,7 @@ class _FormBuilderFilePickerState extends FormBuilderFieldDecorationState<
180
183
type: fileType,
181
184
allowedExtensions: widget.allowedExtensions,
182
185
allowCompression: widget.allowCompression,
186
+ compressionQuality: widget.compressionQuality,
183
187
onFileLoading: widget.onFileLoading,
184
188
allowMultiple: widget.allowMultiple,
185
189
withData: widget.withData,
You can’t perform that action at this time.
0 commit comments