File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ class FormBuilderCheckbox extends FormBuilderFieldDecoration<bool> {
40
40
/// When the value is null, the `contentPadding` is `EdgeInsets.symmetric(horizontal: 16.0)` .
41
41
final EdgeInsets contentPadding;
42
42
43
+ /// Defines how compact the list tile's layout will be.
44
+ ///
45
+ /// {@macro flutter.material.themedata.visualDensity}
46
+ final VisualDensity ? visualDensity;
47
+
43
48
/// {@macro flutter.widgets.Focus.autofocus}
44
49
final bool autofocus;
45
50
@@ -106,6 +111,7 @@ class FormBuilderCheckbox extends FormBuilderFieldDecoration<bool> {
106
111
this .autofocus = false ,
107
112
this .checkColor,
108
113
this .contentPadding = EdgeInsets .zero,
114
+ this .visualDensity,
109
115
this .controlAffinity = ListTileControlAffinity .leading,
110
116
this .secondary,
111
117
this .selected = false ,
@@ -137,6 +143,7 @@ class FormBuilderCheckbox extends FormBuilderFieldDecoration<bool> {
137
143
autofocus: autofocus,
138
144
tristate: tristate,
139
145
contentPadding: contentPadding,
146
+ visualDensity: visualDensity,
140
147
selected: selected,
141
148
checkboxShape: shape,
142
149
side: side,
You can’t perform that action at this time.
0 commit comments