Skip to content

Commit 1377a6f

Browse files
committed
display the wrapMargin and different wrapMargin
1 parent 07c45a8 commit 1377a6f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

example/lib/sources/decorated_radio_checkbox.dart

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ class _DecoratedRadioCheckboxState extends State<DecoratedRadioCheckbox> {
1919
child: Column(
2020
children: <Widget>[
2121
const SizedBox(height: 20),
22+
const Text(
23+
'Checkboxes: control leading - label area is a column of Widgets - wrapSpacing 5.0'),
2224
FormBuilderCheckboxGroup(
2325
name: 'aCheckboxGroup',
2426
options: getDemoOptionsWidgets(),
@@ -28,6 +30,8 @@ class _DecoratedRadioCheckboxState extends State<DecoratedRadioCheckbox> {
2830
borderRadius: BorderRadius.circular(5.0)),
2931
),
3032
const SizedBox(height: 20),
33+
const Text(
34+
'Checkboxes: control trailing - label area is a column of Widgets - wrapSpacing 5.0'),
3135
FormBuilderCheckboxGroup(
3236
name: 'aCheckboxGroup',
3337
options: getDemoOptionsWidgets(),
@@ -38,6 +42,8 @@ class _DecoratedRadioCheckboxState extends State<DecoratedRadioCheckbox> {
3842
borderRadius: BorderRadius.circular(5.0)),
3943
),
4044
const SizedBox(height: 20),
45+
const Text(
46+
'Radio: control leading - label area is a column of Widgets - wrapSpacing 5.0'),
4147
FormBuilderRadioGroup(
4248
name: 'aRadioGroup',
4349
options: getDemoOptionsWidgets(),
@@ -47,10 +53,12 @@ class _DecoratedRadioCheckboxState extends State<DecoratedRadioCheckbox> {
4753
borderRadius: BorderRadius.circular(5.0)),
4854
),
4955
const SizedBox(height: 20),
56+
const Text(
57+
'Radio: control leading - label area just the value - wrapSpacing 10.0'),
5058
FormBuilderRadioGroup(
5159
name: 'aRadioGroup2',
5260
options: getDemoOptions(),
53-
wrapSpacing: 5.0,
61+
wrapSpacing: 10.0,
5462
itemDecoration: BoxDecoration(
5563
border: Border.all(color: Colors.blueAccent),
5664
borderRadius: BorderRadius.circular(5.0)),

0 commit comments

Comments
 (0)