@@ -33,35 +33,35 @@ class FormBuilderChoiceChip extends StatefulWidget {
33
33
final TextDirection textDirection;
34
34
final VerticalDirection verticalDirection;
35
35
36
- FormBuilderChoiceChip (
37
- { Key key,
38
- @required this .attribute,
39
- @required this .options,
40
- this .initialValue,
41
- this .validators = const [],
42
- this .readOnly = false ,
43
- this .decoration = const InputDecoration (),
44
- this .onChanged,
45
- this .valueTransformer,
46
- this .onSaved,
47
- this .selectedColor,
48
- this .disabledColor,
49
- this .backgroundColor,
50
- this .shadowColor,
51
- this .selectedShadowColor,
52
- this .shape,
53
- this .elevation,
54
- this .pressElevation,
55
- this .materialTapTargetSize,
56
- this .direction = Axis .horizontal,
57
- this .alignment = WrapAlignment .start,
58
- this .crossAxisAlignment = WrapCrossAlignment .start,
59
- this .runAlignment = WrapAlignment .start,
60
- this .runSpacing = 0.0 ,
61
- this .spacing = 0.0 ,
62
- this .textDirection,
63
- this .verticalDirection = VerticalDirection .down})
64
- : super (key: key);
36
+ FormBuilderChoiceChip ({
37
+ Key key,
38
+ @required this .attribute,
39
+ @required this .options,
40
+ this .initialValue,
41
+ this .validators = const [],
42
+ this .readOnly = false ,
43
+ this .decoration = const InputDecoration (),
44
+ this .onChanged,
45
+ this .valueTransformer,
46
+ this .onSaved,
47
+ this .selectedColor,
48
+ this .disabledColor,
49
+ this .backgroundColor,
50
+ this .shadowColor,
51
+ this .selectedShadowColor,
52
+ this .shape,
53
+ this .elevation,
54
+ this .pressElevation,
55
+ this .materialTapTargetSize,
56
+ this .direction = Axis .horizontal,
57
+ this .alignment = WrapAlignment .start,
58
+ this .crossAxisAlignment = WrapCrossAlignment .start,
59
+ this .runAlignment = WrapAlignment .start,
60
+ this .runSpacing = 0.0 ,
61
+ this .spacing = 0.0 ,
62
+ this .textDirection,
63
+ this .verticalDirection = VerticalDirection .down,
64
+ }) : super (key: key);
65
65
66
66
@override
67
67
_FormBuilderChoiceChipState createState () => _FormBuilderChoiceChipState ();
@@ -139,7 +139,7 @@ class _FormBuilderChoiceChipState extends State<FormBuilderChoiceChip> {
139
139
elevation: widget.elevation,
140
140
pressElevation: widget.pressElevation,
141
141
materialTapTargetSize: widget.materialTapTargetSize,
142
- label: option.child ,
142
+ label: option,
143
143
selected: field.value == option.value,
144
144
onSelected: _readOnly
145
145
? null
0 commit comments