Skip to content

Commit f0710df

Browse files
committed
Use EdgeInsets.zero instead of const EdgeInsets.all(0.0)
1 parent e19f1f7 commit f0710df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/src/fields/form_builder_checkbox.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class FormBuilderCheckbox extends FormBuilderField<bool> {
8585
this.subtitle,
8686
this.secondary,
8787
this.controlAffinity = ListTileControlAffinity.leading,
88-
this.contentPadding = const EdgeInsets.all(0.0),
88+
this.contentPadding = EdgeInsets.zero,
8989
this.autofocus = false,
9090
this.tristate = false,
9191
this.selected = false,

lib/src/fields/form_builder_switch.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class FormBuilderSwitch extends FormBuilderField {
105105
this.subtitle,
106106
this.secondary,
107107
this.controlAffinity = ListTileControlAffinity.trailing,
108-
this.contentPadding = const EdgeInsets.all(0.0),
108+
this.contentPadding = EdgeInsets.zero,
109109
this.autofocus = false,
110110
this.selected = false,
111111
}) : super(

0 commit comments

Comments
 (0)