Skip to content

Commit fc489d1

Browse files
authored
Add visualDensity to FormBuilderCheckbox
1 parent 5ba56f6 commit fc489d1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/src/fields/form_builder_checkbox.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ class FormBuilderCheckbox extends FormBuilderFieldDecoration<bool> {
4040
/// When the value is null, the `contentPadding` is `EdgeInsets.symmetric(horizontal: 16.0)`.
4141
final EdgeInsets contentPadding;
4242

43+
/// Defines how compact the list tile's layout will be.
44+
///
45+
/// {@macro flutter.material.themedata.visualDensity}
46+
final VisualDensity? visualDensity;
47+
4348
/// {@macro flutter.widgets.Focus.autofocus}
4449
final bool autofocus;
4550

@@ -137,6 +142,7 @@ class FormBuilderCheckbox extends FormBuilderFieldDecoration<bool> {
137142
autofocus: autofocus,
138143
tristate: tristate,
139144
contentPadding: contentPadding,
145+
visualDensity: visualDensity,
140146
selected: selected,
141147
checkboxShape: shape,
142148
side: side,

0 commit comments

Comments
 (0)