@@ -55,52 +55,53 @@ class FormBuilderChipsInput<T> extends FormBuilderField<List<T>> {
55
55
this .autofocus = false ,
56
56
this .textOverflow,
57
57
}) : super (
58
- key: key,
59
- initialValue: initialValue,
60
- name: name,
61
- validator: validator,
62
- valueTransformer: valueTransformer,
63
- onChanged: onChanged,
64
- readOnly: readOnly,
65
- autovalidateMode: autovalidateMode,
66
- onSaved: onSaved,
67
- enabled: enabled,
68
- onReset: onReset,
69
- decoration: decoration,
70
- focusNode: focusNode,
71
- builder: (FormFieldState field) {
72
- final _FormBuilderChipsInputState state = field;
58
+ key: key,
59
+ initialValue: initialValue,
60
+ name: name,
61
+ validator: validator,
62
+ valueTransformer: valueTransformer,
63
+ onChanged: onChanged,
64
+ readOnly: readOnly,
65
+ autovalidateMode: autovalidateMode,
66
+ onSaved: onSaved,
67
+ enabled: enabled,
68
+ onReset: onReset,
69
+ decoration: decoration,
70
+ focusNode: focusNode,
71
+ builder: (FormFieldState field) {
72
+ final _FormBuilderChipsInputState state = field;
73
73
74
- return ChipsInput (
75
- key: ObjectKey (state.value),
76
- initialValue: field.value,
74
+ return ChipsInput (
75
+ key: ObjectKey (state.value),
76
+ initialValue: field.value,
77
+ enabled: ! state.readOnly,
78
+ decoration: decoration.copyWith (
77
79
enabled: ! state.readOnly,
78
- decoration: decoration.copyWith (
79
- enabled: ! state.readOnly,
80
- errorText: decoration? .errorText ?? field.errorText,
81
- ),
82
- findSuggestions: findSuggestions,
83
- onChanged: (data) {
84
- field.didChange (data);
85
- },
86
- maxChips: maxChips,
87
- chipBuilder: chipBuilder,
88
- suggestionBuilder: suggestionBuilder,
89
- textStyle: textStyle,
90
- actionLabel: actionLabel,
91
- autocorrect: autocorrect,
92
- inputAction: inputAction,
93
- inputType: inputType,
94
- keyboardAppearance: keyboardAppearance,
95
- obscureText: obscureText,
96
- suggestionsBoxMaxHeight: suggestionsBoxMaxHeight,
97
- textCapitalization: textCapitalization,
98
- allowChipEditing: allowChipEditing,
99
- autofocus: autofocus,
100
- focusNode: state.effectiveFocusNode,
101
- textOverflow: textOverflow,
102
- );
103
- },);
80
+ errorText: decoration? .errorText ?? field.errorText,
81
+ ),
82
+ findSuggestions: findSuggestions,
83
+ onChanged: (data) {
84
+ field.didChange (data);
85
+ },
86
+ maxChips: maxChips,
87
+ chipBuilder: chipBuilder,
88
+ suggestionBuilder: suggestionBuilder,
89
+ textStyle: textStyle,
90
+ actionLabel: actionLabel,
91
+ autocorrect: autocorrect,
92
+ inputAction: inputAction,
93
+ inputType: inputType,
94
+ keyboardAppearance: keyboardAppearance,
95
+ obscureText: obscureText,
96
+ suggestionsBoxMaxHeight: suggestionsBoxMaxHeight,
97
+ textCapitalization: textCapitalization,
98
+ allowChipEditing: allowChipEditing,
99
+ autofocus: autofocus,
100
+ focusNode: state.effectiveFocusNode,
101
+ textOverflow: textOverflow,
102
+ );
103
+ },
104
+ );
104
105
105
106
@override
106
107
_FormBuilderChipsInputState <T > createState () => _FormBuilderChipsInputState ();
0 commit comments