How do you stop and start timer on flutter?

I solved your code by adding setState() in your start and stop watch methods, flipped the logic in said methods, and added () => before startOrStop in the onPressed callback (This was the dealbreaker). Furthermore, I removed startStop = false; from updateTimer() .

Sizin İçin Seçtik  How do you put a Timer in widget flutter?

Leave a Reply

Your email address will not be published. Required fields are marked *