File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ import 'package:flutter/material.dart';
3
3
class CheetahButton extends StatelessWidget {
4
4
final String text;
5
5
final Function onPressed;
6
- final Color ? color;
7
- final Color ? textColor;
6
+ final Color color;
7
+ final Color textColor;
8
8
9
9
CheetahButton ({
10
- required this .text,
11
- required this .onPressed,
10
+ @ required this .text,
11
+ @ required this .onPressed,
12
12
this .color,
13
13
this .textColor,
14
14
});
@@ -32,7 +32,7 @@ class CheetahButton extends StatelessWidget {
32
32
color: textColor ?? Colors .white,
33
33
),
34
34
),
35
- onPressed: onPressed () ,
35
+ onPressed: onPressed,
36
36
),
37
37
);
38
38
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class CheetahInput extends StatelessWidget {
22
22
validator: (String value) {
23
23
return value.isEmpty ? '$labelText is required' : null ;
24
24
},
25
- onSaved: onSaved () ,
25
+ onSaved: onSaved,
26
26
);
27
27
}
28
28
}
You can’t perform that action at this time.
0 commit comments