This commit is contained in:
toly
2023-05-02 08:48:28 +08:00
parent 2b438bbbbe
commit d6c4f9be05

View File

@@ -62,7 +62,8 @@ class _MuyuPageState extends State<MuyuPage> {
void _onKnock() {
setState(() {
_counter += 1 + _random.nextInt(3);
int addCount = 1 + _random.nextInt(3);
_counter += addCount;
});
}
}