File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export './src/fields/form_builder_image_picker.dart';
16
16
export './src/fields/form_builder_image_picker.dart' ;
17
17
export './src/fields/form_builder_phone_field.dart' ;
18
18
export './src/fields/form_builder_radio.dart' ;
19
- // export './src/fields/form_builder_radio_group.dart';
19
+ export './src/fields/form_builder_radio_group.dart' ;
20
20
export './src/fields/form_builder_range_slider.dart' ;
21
21
export './src/fields/form_builder_rate.dart' ;
22
22
export './src/fields/form_builder_segmented_control.dart' ;
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ class FormBuilderRadioGroup extends StatefulWidget {
18
18
final Color activeColor;
19
19
final FormFieldSetter onSaved;
20
20
final EdgeInsets contentPadding;
21
+ final Axis direction;
22
+ final MainAxisAlignment horizontalAlignment;
23
+ final double spaceBetween;
21
24
22
25
FormBuilderRadioGroup ({
23
26
Key key,
@@ -34,6 +37,9 @@ class FormBuilderRadioGroup extends StatefulWidget {
34
37
this .activeColor,
35
38
this .onSaved,
36
39
this .contentPadding = const EdgeInsets .all (0.0 ),
40
+ this .direction = Axis .horizontal,
41
+ this .horizontalAlignment = MainAxisAlignment .start,
42
+ this .spaceBetween,
37
43
}) : super (key: key);
38
44
39
45
@override
@@ -109,9 +115,9 @@ class _FormBuilderRadioGroupState extends State<FormBuilderRadioGroup> {
109
115
textPosition: RadioButtonTextPosition .right,
110
116
);
111
117
},
112
- direction: Axis .horizontal ,
113
- horizontalAlignment: MainAxisAlignment .start ,
114
- spacebetween: 40 ,
118
+ direction: widget.direction ,
119
+ horizontalAlignment: widget.horizontalAlignment ,
120
+ spacebetween: widget.spaceBetween ,
115
121
),
116
122
);
117
123
},
You can’t perform that action at this time.
0 commit comments