@@ -19,8 +19,10 @@ class _DecoratedRadioCheckboxState extends State<DecoratedRadioCheckbox> {
19
19
child: Column (
20
20
children: < Widget > [
21
21
const SizedBox (height: 20 ),
22
+ // this text appears correctly if the textScaler <> 1.0
22
23
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 )),
24
26
FormBuilderCheckboxGroup (
25
27
name: 'aCheckboxGroup' ,
26
28
options: getDemoOptionsWidgets (),
@@ -31,7 +33,8 @@ class _DecoratedRadioCheckboxState extends State<DecoratedRadioCheckbox> {
31
33
),
32
34
const SizedBox (height: 20 ),
33
35
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 )),
35
38
FormBuilderCheckboxGroup (
36
39
name: 'aCheckboxGroup' ,
37
40
options: getDemoOptionsWidgets (),
@@ -43,7 +46,8 @@ class _DecoratedRadioCheckboxState extends State<DecoratedRadioCheckbox> {
43
46
),
44
47
const SizedBox (height: 20 ),
45
48
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 )),
47
51
FormBuilderRadioGroup (
48
52
name: 'aRadioGroup' ,
49
53
options: getDemoOptionsWidgets (),
@@ -54,7 +58,8 @@ class _DecoratedRadioCheckboxState extends State<DecoratedRadioCheckbox> {
54
58
),
55
59
const SizedBox (height: 20 ),
56
60
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 )),
58
63
FormBuilderRadioGroup (
59
64
name: 'aRadioGroup2' ,
60
65
options: getDemoOptions (),
@@ -64,6 +69,16 @@ class _DecoratedRadioCheckboxState extends State<DecoratedRadioCheckbox> {
64
69
borderRadius: BorderRadius .circular (5.0 )),
65
70
),
66
71
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 ),
67
82
],
68
83
),
69
84
);
0 commit comments