Skip to content

Commit b32fb7b

Browse files
committed
More elabore example
1 parent 1377a6f commit b32fb7b

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

example/lib/sources/decorated_radio_checkbox.dart

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ class _DecoratedRadioCheckboxState extends State<DecoratedRadioCheckbox> {
1919
child: Column(
2020
children: <Widget>[
2121
const SizedBox(height: 20),
22+
// this text appears correctly if the textScaler <> 1.0
2223
const Text(
23-
'Checkboxes: control leading - label area is a column of Widgets - wrapSpacing 5.0'),
24+
'Checkboxes: control leading - with itemDecoration- label area is a column of Widgets - wrapSpacing 5.0',
25+
textScaler: TextScaler.linear(1.01)),
2426
FormBuilderCheckboxGroup(
2527
name: 'aCheckboxGroup',
2628
options: getDemoOptionsWidgets(),
@@ -31,7 +33,8 @@ class _DecoratedRadioCheckboxState extends State<DecoratedRadioCheckbox> {
3133
),
3234
const SizedBox(height: 20),
3335
const Text(
34-
'Checkboxes: control trailing - label area is a column of Widgets - wrapSpacing 5.0'),
36+
'Checkboxes: control trailing - with itemDecoration - label area is a column of Widgets - wrapSpacing 5.0',
37+
textScaler: TextScaler.linear(1.01)),
3538
FormBuilderCheckboxGroup(
3639
name: 'aCheckboxGroup',
3740
options: getDemoOptionsWidgets(),
@@ -43,7 +46,8 @@ class _DecoratedRadioCheckboxState extends State<DecoratedRadioCheckbox> {
4346
),
4447
const SizedBox(height: 20),
4548
const Text(
46-
'Radio: control leading - label area is a column of Widgets - wrapSpacing 5.0'),
49+
'Radio: control leading - with itemDecoration - label area is a column of Widgets - wrapSpacing 5.0',
50+
textScaler: TextScaler.linear(1.01)),
4751
FormBuilderRadioGroup(
4852
name: 'aRadioGroup',
4953
options: getDemoOptionsWidgets(),
@@ -54,7 +58,8 @@ class _DecoratedRadioCheckboxState extends State<DecoratedRadioCheckbox> {
5458
),
5559
const SizedBox(height: 20),
5660
const Text(
57-
'Radio: control leading - label area just the value - wrapSpacing 10.0'),
61+
'Radio: control leading - with itemDecoration - label area just the value - wrapSpacing 10.0',
62+
textScaler: TextScaler.linear(1.01)),
5863
FormBuilderRadioGroup(
5964
name: 'aRadioGroup2',
6065
options: getDemoOptions(),
@@ -64,6 +69,16 @@ class _DecoratedRadioCheckboxState extends State<DecoratedRadioCheckbox> {
6469
borderRadius: BorderRadius.circular(5.0)),
6570
),
6671
const SizedBox(height: 20),
72+
const Text(
73+
'Radio: control leading - no itemDecoration - label area just the value - wrapSpacing 10.0',
74+
textScaler: TextScaler.linear(1.01)),
75+
76+
FormBuilderRadioGroup(
77+
name: 'aRadioGroup2',
78+
options: getDemoOptions(),
79+
wrapSpacing: 10.0,
80+
),
81+
const SizedBox(height: 20),
6782
],
6883
),
6984
);

0 commit comments

Comments
 (0)