File tree Expand file tree Collapse file tree 4 files changed +18
-14
lines changed Expand file tree Collapse file tree 4 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,8 @@ class FormBuilderCheckboxGroup<T> extends FormBuilderFieldDecoration<List<T>> {
25
25
final ControlAffinity controlAffinity;
26
26
final OptionsOrientation orientation;
27
27
28
- /// A BoxDecoration that is added to each item if provided
29
- /// WrapSpacing is reused for the the padding inside the itemDecoration
30
- /// on the side opposite from the control
28
+ /// Added to each item if provided.
29
+ /// [GroupedCheckbox] applies the [itemDecorator] to each Checkbox
31
30
final BoxDecoration ? itemDecoration;
32
31
33
32
/// Creates a list of Checkboxes for selecting multiple options
Original file line number Diff line number Diff line change @@ -22,9 +22,8 @@ class FormBuilderRadioGroup<T> extends FormBuilderFieldDecoration<T> {
22
22
final WrapAlignment wrapRunAlignment;
23
23
final WrapCrossAlignment wrapCrossAxisAlignment;
24
24
25
- /// A BoxDecoration that is added to each item if provided
26
- /// WrapSpacing is reused for the the padding inside the itemDecoration
27
- /// on the side opposite from the control
25
+ /// Added to each item if provided.
26
+ /// [GroupedRadio] applies the [itemDecorator] to each Radio
28
27
final BoxDecoration ? itemDecoration;
29
28
30
29
/// Creates field to select one value from a list of Radio Widgets
Original file line number Diff line number Diff line change @@ -181,10 +181,13 @@ class GroupedCheckbox<T> extends StatelessWidget {
181
181
182
182
final ControlAffinity controlAffinity;
183
183
184
- /// A BoxDecoration that is added to each item if provided
185
- /// [wrapSpacing] is used as inter-item bottom margin for [Orientation.vertical]
186
- /// [wrapSpacing] is used as inter-item right margin for [Orientation.horizontal] .
187
- /// on the side opposite from the control
184
+ /// Applied to a [Container] wrapping each item if provided
185
+ ///
186
+ /// If the [orientation] is set to [OptionsOrientation.vertical] then
187
+ /// [wrapSpacing] is used as inter-item bottom margin
188
+ ///
189
+ /// If the [orientation] is set to [OptionsOrientation.horizontal] then
190
+ /// [wrapSpacing] is used as inter-item right margin
188
191
final BoxDecoration ? itemDecoration;
189
192
190
193
const GroupedCheckbox ({
Original file line number Diff line number Diff line change @@ -172,10 +172,13 @@ class GroupedRadio<T> extends StatefulWidget {
172
172
173
173
final ControlAffinity controlAffinity;
174
174
175
- /// A BoxDecoration that is added to each item if provided
176
- /// [wrapSpacing] is used as inter-item bottom margin for [Orientation.vertical]
177
- /// [wrapSpacing] is used as inter-item right margin for [Orientation.horizontal] .
178
- /// on the side opposite from the control
175
+ /// Applied to a [Container] wrapping each item if provided
176
+ ///
177
+ /// If the [orientation] is set to [OptionsOrientation.vertical] then
178
+ /// [wrapSpacing] is used as inter-item bottom margin
179
+ ///
180
+ /// If the [orientation] is set to [OptionsOrientation.horizontal] then
181
+ /// [wrapSpacing] is used as inter-item right margin
179
182
final BoxDecoration ? itemDecoration;
180
183
181
184
const GroupedRadio ({
You can’t perform that action at this time.
0 commit comments