@@ -69,38 +69,43 @@ class FormBuilderCheckboxGroup<T> extends FormBuilderFieldDecoration<List<T>> {
6969 builder: (FormFieldState <List <T >?> field) {
7070 final state = field as _FormBuilderCheckboxGroupState <T >;
7171
72- return InputDecorator (
73- decoration: state.decoration,
74- isFocused: state.effectiveFocusNode.hasFocus,
75- child: GroupedCheckbox <T >(
76- focusNode: state.effectiveFocusNode,
77- orientation: orientation,
78- value: state.value,
79- options: options,
80- onChanged: (val) {
81- field.didChange (val);
82- },
83- disabled: state.enabled
84- ? disabled
85- : options.map ((e) => e.value).toList (),
86- activeColor: activeColor,
87- visualDensity: visualDensity,
88- focusColor: focusColor,
89- checkColor: checkColor,
90- materialTapTargetSize: materialTapTargetSize,
91- hoverColor: hoverColor,
92- tristate: tristate,
93- wrapAlignment: wrapAlignment,
94- wrapCrossAxisAlignment: wrapCrossAxisAlignment,
95- wrapDirection: wrapDirection,
96- wrapRunAlignment: wrapRunAlignment,
97- wrapRunSpacing: wrapRunSpacing,
98- wrapSpacing: wrapSpacing,
99- wrapTextDirection: wrapTextDirection,
100- wrapVerticalDirection: wrapVerticalDirection,
101- separator: separator,
102- controlAffinity: controlAffinity,
103- itemDecoration: itemDecoration,
72+ return Focus (
73+ focusNode: state.effectiveFocusNode,
74+ skipTraversal: true ,
75+ canRequestFocus: state.enabled,
76+ debugLabel: 'FormBuilderCheckboxGroup-$name ' ,
77+ child: InputDecorator (
78+ decoration: state.decoration,
79+ isFocused: state.effectiveFocusNode.hasFocus,
80+ child: GroupedCheckbox <T >(
81+ orientation: orientation,
82+ value: state.value,
83+ options: options,
84+ onChanged: (val) {
85+ field.didChange (val);
86+ },
87+ disabled: state.enabled
88+ ? disabled
89+ : options.map ((e) => e.value).toList (),
90+ activeColor: activeColor,
91+ visualDensity: visualDensity,
92+ focusColor: focusColor,
93+ checkColor: checkColor,
94+ materialTapTargetSize: materialTapTargetSize,
95+ hoverColor: hoverColor,
96+ tristate: tristate,
97+ wrapAlignment: wrapAlignment,
98+ wrapCrossAxisAlignment: wrapCrossAxisAlignment,
99+ wrapDirection: wrapDirection,
100+ wrapRunAlignment: wrapRunAlignment,
101+ wrapRunSpacing: wrapRunSpacing,
102+ wrapSpacing: wrapSpacing,
103+ wrapTextDirection: wrapTextDirection,
104+ wrapVerticalDirection: wrapVerticalDirection,
105+ separator: separator,
106+ controlAffinity: controlAffinity,
107+ itemDecoration: itemDecoration,
108+ ),
104109 ),
105110 );
106111 },
0 commit comments