Hey im trying to have a CircularCountDownTimer restarting every time it finishes counting to 60,
I was hoping it has to do with onComplete(), but I can't figure out how to restart it.
any help appreciated, thanks.
this is the CircularTimer widget:
CircularCountDownTimer(
duration: 60,
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.height,
color: Colors.grey[300],
fillColor: Colors.yellow[800],
strokeWidth: 4.0,
textStyle: TextStyle(
fontSize: 0.0,
color: Colors.black87,
fontWeight: FontWeight.bold),
isReverse: false,
onComplete: () {
setState(() {
min --;
});
},
)
