@@ -29,53 +29,6 @@ void main() {
29
29
expect (formValue (widgetName), equals (const [1 , 3 ]));
30
30
});
31
31
32
- testWidgets ('FormBuilderCheckboxGroup -- decoration control' ,
33
- (WidgetTester tester) async {
34
- const widgetName = 'cbg1' ;
35
- final testWidget = FormBuilderCheckboxGroup <int >(
36
- name: widgetName,
37
- wrapSpacing: 10.0 ,
38
- options: const [
39
- FormBuilderFieldOption (key: ValueKey ('1' ), value: 1 ),
40
- FormBuilderFieldOption (key: ValueKey ('2' ), value: 2 ),
41
- ],
42
- itemDecoration:
43
- BoxDecoration (border: Border .all (color: Colors .blueAccent)),
44
- );
45
- await tester.pumpWidget (buildTestableFieldWidget (testWidget));
46
-
47
- // this is a brittle test knowing how we use container for a border
48
- // there is one container for each option
49
- expect (find.byType (Container ), findsExactly (2 ));
50
- // same as wrapSpacing
51
- Container foo = tester.firstWidget (find.byType (Container ));
52
- expect (foo.padding, const EdgeInsets .only (right: 10.0 ));
53
- });
54
-
55
- testWidgets ('FormBuilderCheckboxGroup -- decoration control following' ,
56
- (WidgetTester tester) async {
57
- const widgetName = 'cbg1' ;
58
- final testWidget = FormBuilderCheckboxGroup <int >(
59
- name: widgetName,
60
- controlAffinity: ControlAffinity .trailing,
61
- wrapSpacing: 10.0 ,
62
- options: const [
63
- FormBuilderFieldOption (key: ValueKey ('1' ), value: 1 ),
64
- FormBuilderFieldOption (key: ValueKey ('2' ), value: 2 ),
65
- ],
66
- itemDecoration:
67
- BoxDecoration (border: Border .all (color: Colors .blueAccent)),
68
- );
69
- await tester.pumpWidget (buildTestableFieldWidget (testWidget));
70
-
71
- // this is a brittle test knowing how we use container for a border
72
- // there is one container for each option
73
- expect (find.byType (Container ), findsExactly (2 ));
74
- // same as wrapSpacing
75
- Container foo = tester.firstWidget (find.byType (Container ));
76
- expect (foo.padding, const EdgeInsets .only (left: 10.0 ));
77
- });
78
-
79
32
testWidgets ('FormBuilderCheckboxGroup -- decoration horizontal' ,
80
33
(WidgetTester tester) async {
81
34
const widgetName = 'cbg1' ;
0 commit comments