Open svraluca opened 3 years ago
Hi, will need more information about this to be able to properly look into it; but I have specified below, some possible reasons it might not be working:
The controller has not been attached to the widget
The duration being added cannot exceed the actual timer duration i.e. if the duration of the timer is 20 seconds and a duration of 30 seconds Is added to the timer, it will only reset the timer and continue the countdown from 20 seconds
So I tried to use this but it doesn't work : FlatButton( onPressed: _timerController.add(Duration(seconds: 30)), child: const Text("Add 30 seconds", style: TextStyle(color: Colors.white)), color: Colors.orange, ), But it doesn't work ...