@@ -8,66 +8,66 @@ void main() {
88 width: 100 ,
99 height: 100 ,
1010 );
11- final bgcolor = Colors .teal;
12- const contentchild = Icon (Icons .umbrella);
11+ final bgColor = Colors .teal;
12+ const contentChild = Icon (Icons .umbrella);
1313 const child = Text ('Get Widget' );
1414
15- testWidgets ('GF Alert can be created.' , (tester) async {
15+ testWidgets ('GFAlert can be created.' , (tester) async {
1616 final GFAlert alert = GFAlert (
17- backgroundColor: bgcolor ,
18- contentChild: contentchild ,
17+ backgroundColor: bgColor ,
18+ contentChild: contentChild ,
1919 child: childWidget);
2020
2121 final TestApp app = TestApp (alert);
2222
2323 await tester.pumpWidget (Container (child: childWidget));
2424 expect (find.byWidget (childWidget), findsOneWidget);
25- expect (app.alert.backgroundColor, bgcolor );
26- expect (app.alert.contentChild, contentchild );
25+ expect (app.alert.backgroundColor, bgColor );
26+ expect (app.alert.contentChild, contentChild );
2727 expect (app.alert.child, childWidget);
2828 });
2929
30- testWidgets ('Basic GF Alert .' , (tester) async {
30+ testWidgets ('Basic GFAlert .' , (tester) async {
3131 const basicType = GFAlertType .basic;
3232
3333 final GFAlert alert = GFAlert (
34- backgroundColor: bgcolor ,
35- contentChild: contentchild ,
34+ backgroundColor: bgColor ,
35+ contentChild: contentChild ,
3636 type: basicType,
3737 child: child);
3838
3939 final TestApp app = TestApp (alert);
4040
4141 await tester.pumpWidget (Container (child: childWidget));
4242 expect (find.byWidget (childWidget), findsOneWidget);
43- expect (app.alert.backgroundColor, bgcolor );
44- expect (app.alert.contentChild, contentchild );
43+ expect (app.alert.backgroundColor, bgColor );
44+ expect (app.alert.contentChild, contentChild );
4545 expect (app.alert.type, basicType);
4646 expect (app.alert.child, child);
4747 });
4848
49- testWidgets ('Rounded GF Alert .' , (tester) async {
49+ testWidgets ('Rounded GFAlert .' , (tester) async {
5050 const roundedType = GFAlertType .rounded;
5151
5252 const GFAlert alert =
53- GFAlert (contentChild: contentchild , type: roundedType, child: child);
53+ GFAlert (contentChild: contentChild , type: roundedType, child: child);
5454
5555 const TestApp app = TestApp (alert);
5656
5757 await tester.pumpWidget (Container (child: childWidget));
5858 expect (find.byWidget (childWidget), findsOneWidget);
59- expect (app.alert.contentChild, contentchild );
59+ expect (app.alert.contentChild, contentChild );
6060 expect (app.alert.type, roundedType);
6161 expect (app.alert.child, child);
6262 });
6363
64- testWidgets ('Fullwidth GF Alert .' , (tester) async {
64+ testWidgets ('FullWidth GFAlert .' , (tester) async {
6565 const basicType = GFAlertType .basic;
6666 const fullWidth = 400.0 ;
6767
6868 const GFAlert alert = GFAlert (
6969 width: fullWidth,
70- contentChild: contentchild ,
70+ contentChild: contentChild ,
7171 type: basicType,
7272 child: child);
7373
@@ -76,12 +76,12 @@ void main() {
7676 await tester.pumpWidget (Container (child: childWidget));
7777 expect (find.byWidget (childWidget), findsOneWidget);
7878 expect (app.alert.width, fullWidth);
79- expect (app.alert.contentChild, contentchild );
79+ expect (app.alert.contentChild, contentChild );
8080 expect (app.alert.type, basicType);
8181 expect (app.alert.child, child);
8282 });
8383
84- testWidgets ('Customized GF Alert .' , (tester) async {
84+ testWidgets ('Customized GFAlert .' , (tester) async {
8585 const basicType = GFAlertType .basic;
8686 final customBottombar = Row (
8787 mainAxisAlignment: MainAxisAlignment .end,
@@ -112,7 +112,7 @@ void main() {
112112 ],
113113 );
114114 final GFAlert alert = GFAlert (
115- contentChild: contentchild ,
115+ contentChild: contentChild ,
116116 type: basicType,
117117 bottombar: customBottombar,
118118 child: child);
@@ -121,22 +121,22 @@ void main() {
121121
122122 await tester.pumpWidget (Container (child: childWidget));
123123 expect (find.byWidget (childWidget), findsOneWidget);
124- expect (app.alert.contentChild, contentchild );
124+ expect (app.alert.contentChild, contentChild );
125125 expect (app.alert.type, basicType);
126126 expect (app.alert.child, child);
127127 });
128128
129- testWidgets ('GF Alert with alignment.' , (tester) async {
129+ testWidgets ('GFAlert with alignment.' , (tester) async {
130130 const alignment = Alignment .bottomRight;
131131
132132 const GFAlert alert =
133- GFAlert (contentChild: contentchild , alignment: alignment, child: child);
133+ GFAlert (contentChild: contentChild , alignment: alignment, child: child);
134134
135135 const TestApp app = TestApp (alert);
136136
137137 await tester.pumpWidget (Container (child: childWidget));
138138 expect (find.byWidget (childWidget), findsOneWidget);
139- expect (app.alert.contentChild, contentchild );
139+ expect (app.alert.contentChild, contentChild );
140140 expect (app.alert.alignment, alignment);
141141 expect (app.alert.child, child);
142142 });
0 commit comments