fix: count down btn

This commit is contained in:
lollipopkit
2024-04-10 08:23:00 +08:00
parent 107548aa36
commit a38cc9a1ee
2 changed files with 2 additions and 1 deletions

View File

@@ -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();