Skip to content

Commit 81839f3

Browse files
committed
Added labelPadding and labelStyle to ChoiceChip field
1 parent 0323c7b commit 81839f3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/src/fields/form_builder_chips_choice.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ class FormBuilderChoiceChip extends StatefulWidget {
3232
final double runSpacing, spacing;
3333
final TextDirection textDirection;
3434
final VerticalDirection verticalDirection;
35+
final EdgeInsets labelPadding;
36+
final TextStyle labelStyle;
3537

3638
FormBuilderChoiceChip({
3739
Key key,
@@ -61,6 +63,8 @@ class FormBuilderChoiceChip extends StatefulWidget {
6163
this.spacing = 0.0,
6264
this.textDirection,
6365
this.verticalDirection = VerticalDirection.down,
66+
this.labelPadding,
67+
this.labelStyle,
6468
}) : super(key: key);
6569

6670
@override
@@ -151,7 +155,9 @@ class _FormBuilderChoiceChipState extends State<FormBuilderChoiceChip> {
151155
widget.onChanged?.call(choice);
152156
});
153157
},
154-
)
158+
labelPadding: widget.labelPadding,
159+
labelStyle: widget.labelStyle,
160+
),
155161
]),
156162
);
157163
},

0 commit comments

Comments
 (0)