diff --git a/lib/route/home/HomeFragment.dart b/lib/route/home/HomeFragment.dart index 38c8231..9880e00 100644 --- a/lib/route/home/HomeFragment.dart +++ b/lib/route/home/HomeFragment.dart @@ -95,7 +95,7 @@ class CounterState extends State { void _run() async { while (isRunning) { await Future.delayed(const Duration(seconds: 1)); - setState(() {}); + if (isRunning) setState(() {}); } }