phucgaoxam/slide_countdown_clock

Start over onDone

Opened this issue · 6 comments

Hey, is there any way to get the countdown clock to start again when it hits 0? I've tried many different ways but it just seems to get stuck at 0 no matter what I do.

@runedrune can you please wait for a few days for the next update.
I will mention you after I'm done.

Yeah sure man. No problem.

@runedrune or you can try setState (reset the widget itself)

I tried that. Doesn't seem to work. In onDone I tried setstate and passed a new value to duration but it didn't work. Just stayed at 0. Can't figure out why.

yes setState or any other state management method won't work timer build only once.

modify SlideCountdownClockState

image