@@ -53,9 +53,21 @@ class FormBuilderChoiceChip<T> extends FormBuilderField<T> {
53
53
/// The default is [Colors.black] .
54
54
final Color ? shadowColor;
55
55
56
- /// The [ShapeBorder ] to draw around the chip.
56
+ /// The [OutlinedBorder ] to draw around the chip.
57
57
///
58
- /// Defaults to the shape in the ambient [ChipThemeData] .
58
+ /// Defaults to the shape in the ambient [ChipThemeData] . If the theme
59
+ /// shape resolves to null, the default is [StadiumBorder] .
60
+ ///
61
+ /// This shape is combined with [side] to create a shape decorated with an
62
+ /// outline. If it is a [MaterialStateOutlinedBorder] ,
63
+ /// [MaterialStateProperty.resolve] is used for the following
64
+ /// [MaterialState] s:
65
+ ///
66
+ /// * [MaterialState.disabled] .
67
+ /// * [MaterialState.selected] .
68
+ /// * [MaterialState.hovered] .
69
+ /// * [MaterialState.focused] .
70
+ /// * [MaterialState.pressed] .
59
71
final OutlinedBorder ? shape;
60
72
61
73
/// Configures the minimum size of the tap target.
@@ -311,6 +323,7 @@ class FormBuilderChoiceChip<T> extends FormBuilderField<T> {
311
323
for (FormBuilderChipOption <T > option in options)
312
324
ChoiceChip (
313
325
label: option,
326
+ shape: shape,
314
327
selected: field.value == option.value,
315
328
onSelected: state.enabled
316
329
? (selected) {
0 commit comments