tap
This commit is contained in:
@@ -62,7 +62,8 @@ class _MuyuPageState extends State<MuyuPage> {
|
|||||||
|
|
||||||
void _onKnock() {
|
void _onKnock() {
|
||||||
setState(() {
|
setState(() {
|
||||||
_counter += 1 + _random.nextInt(3);
|
int addCount = 1 + _random.nextInt(3);
|
||||||
|
_counter += addCount;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user