@@ -51,6 +51,28 @@ class FormBuilderChoiceChip<T> extends FormBuilderFieldDecoration<T> {
51
51
/// The default is [Colors.black] .
52
52
final Color ? shadowColor;
53
53
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
+
54
76
/// The [OutlinedBorder] to draw around the chip.
55
77
///
56
78
/// Defaults to the shape in the ambient [ChipThemeData] . If the theme
@@ -293,6 +315,7 @@ class FormBuilderChoiceChip<T> extends FormBuilderFieldDecoration<T> {
293
315
this .selectedColor,
294
316
this .selectedShadowColor,
295
317
this .shadowColor,
318
+ this .side,
296
319
this .shape,
297
320
this .spacing = 0.0 ,
298
321
this .textDirection,
@@ -317,6 +340,7 @@ class FormBuilderChoiceChip<T> extends FormBuilderFieldDecoration<T> {
317
340
for (FormBuilderChipOption <T > option in options)
318
341
ChoiceChip (
319
342
label: option,
343
+ side: side,
320
344
shape: shape,
321
345
selected: field.value == option.value,
322
346
onSelected: state.enabled
0 commit comments