mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
fix: count down btn
This commit is contained in:
@@ -40,7 +40,6 @@ final class _CountDownBtnState extends State<CountDownBtn> {
|
||||
bool get isCounting => _seconds > 0;
|
||||
|
||||
void _startCountDown() {
|
||||
if (isCounting) return;
|
||||
_timer = Timer.periodic(const Duration(seconds: 1), (timer) {
|
||||
if (!isCounting) {
|
||||
_timer?.cancel();
|
||||
|
||||
Reference in New Issue
Block a user