File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,22 @@ class FormBuilderCheckbox extends FormBuilderField<bool> {
66
66
/// Normally, this property is left to its default value, false.
67
67
final bool selected;
68
68
69
+ /// {@macro flutter.material.checkbox.shape}
70
+ ///
71
+ /// If this property is null then [CheckboxThemeData.shape] of [ThemeData.checkboxTheme]
72
+ /// is used. If that's null then the shape will be a [RoundedRectangleBorder]
73
+ /// with a circular corner radius of 1.0.
74
+ final OutlinedBorder ? shape;
75
+
76
+ /// {@macro flutter.material.checkbox.side}
77
+ ///
78
+ /// The given value is passed directly to [Checkbox.side] .
79
+ ///
80
+ /// If this property is null, then [CheckboxThemeData.side] of
81
+ /// [ThemeData.checkboxTheme] is used. If that is also null, then the side
82
+ /// will be width 2.
83
+ final BorderSide ? side;
84
+
69
85
/// Creates a single Checkbox field
70
86
FormBuilderCheckbox ({
71
87
super .key,
@@ -97,6 +113,8 @@ class FormBuilderCheckbox extends FormBuilderField<bool> {
97
113
this .shouldRequestFocus = false ,
98
114
this .subtitle,
99
115
this .tristate = false ,
116
+ this .shape,
117
+ this .side,
100
118
}) : super (
101
119
builder: (FormFieldState <bool ?> field) {
102
120
final state = field as _FormBuilderCheckboxState ;
@@ -125,6 +143,8 @@ class FormBuilderCheckbox extends FormBuilderField<bool> {
125
143
tristate: tristate,
126
144
contentPadding: contentPadding,
127
145
selected: selected,
146
+ checkboxShape: shape,
147
+ side: side,
128
148
),
129
149
);
130
150
},
You can’t perform that action at this time.
0 commit comments