@@ -51,6 +51,28 @@ class FormBuilderChoiceChip<T> extends FormBuilderFieldDecoration<T> {
5151 /// The default is [Colors.black] .
5252 final Color ? shadowColor;
5353
54+ /// The color and weight of the chip's outline.
55+ ///
56+ /// Defaults to the border side in the ambient [ChipThemeData] . If the theme
57+ /// border side resolves to null and [ThemeData.useMaterial3] is true, then
58+ /// [BorderSide] with a [ColorScheme.outline] color is used when the chip is
59+ /// enabled, and [BorderSide] with a [ColorScheme.onSurface] color with an
60+ /// opacity of 0.12 is used when the chip is disabled. Otherwise, it defaults
61+ /// to null.
62+ ///
63+ /// This value is combined with [shape] to create a shape decorated with an
64+ /// outline. To omit the outline entirely, pass [BorderSide.none] to [side] .
65+ ///
66+ /// If it is a [WidgetStateBorderSide] , [WidgetStateProperty.resolve] is
67+ /// used for the following [WidgetState] s:
68+ ///
69+ /// * [WidgetState.disabled] .
70+ /// * [WidgetState.selected] .
71+ /// * [WidgetState.hovered] .
72+ /// * [WidgetState.focused] .
73+ /// * [WidgetState.pressed] .
74+ final BorderSide ? side;
75+
5476 /// The [OutlinedBorder] to draw around the chip.
5577 ///
5678 /// Defaults to the shape in the ambient [ChipThemeData] . If the theme
@@ -293,6 +315,7 @@ class FormBuilderChoiceChip<T> extends FormBuilderFieldDecoration<T> {
293315 this .selectedColor,
294316 this .selectedShadowColor,
295317 this .shadowColor,
318+ this .side,
296319 this .shape,
297320 this .spacing = 0.0 ,
298321 this .textDirection,
@@ -317,6 +340,7 @@ class FormBuilderChoiceChip<T> extends FormBuilderFieldDecoration<T> {
317340 for (FormBuilderChipOption <T > option in options)
318341 ChoiceChip (
319342 label: option,
343+ side: side,
320344 shape: shape,
321345 selected: field.value == option.value,
322346 onSelected: state.enabled
0 commit comments