Skip to content

Commit 6d81ece

Browse files
author
Julian Currie
committed
fixes for some errors
1 parent 13836ac commit 6d81ece

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/widget/cheetah_button.dart

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import 'package:flutter/material.dart';
33
class CheetahButton extends StatelessWidget {
44
final String text;
55
final Function onPressed;
6-
final Color? color;
7-
final Color? textColor;
6+
final Color color;
7+
final Color textColor;
88

99
CheetahButton({
10-
required this.text,
11-
required this.onPressed,
10+
@required this.text,
11+
@required this.onPressed,
1212
this.color,
1313
this.textColor,
1414
});
@@ -32,7 +32,7 @@ class CheetahButton extends StatelessWidget {
3232
color: textColor ?? Colors.white,
3333
),
3434
),
35-
onPressed: onPressed(),
35+
onPressed: onPressed,
3636
),
3737
);
3838
}

lib/widget/cheetah_input.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class CheetahInput extends StatelessWidget {
2222
validator: (String value) {
2323
return value.isEmpty ? '$labelText is required' : null;
2424
},
25-
onSaved: onSaved(),
25+
onSaved: onSaved,
2626
);
2727
}
2828
}

0 commit comments

Comments
 (0)