We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to use a restart button to restart the clock
var startTime; void _restartTimer() async{ startTime = DateTime.now(); setState(() {}); } return Material( child: Column( children: <Widget>[ Row( mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[ Container( padding: const EdgeInsets.all(8.0), margin: const EdgeInsets.symmetric(horizontal: 8.0), child: FlipClock.countdown( startTime: startTime, duration: Duration(minutes: model.durationMin, seconds: model.durationSec), digitColor: Colors.white, backgroundColor: Colors.black, digitSize: 48.0, borderRadius: const BorderRadius.all(Radius.circular(3.0)), onDone: () => print('Done'), ), ), IconButton(onPressed: _restartTimer, icon: Icon(Icons.refresh)) ] ) ......
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Trying to use a restart button to restart the clock
The text was updated successfully, but these errors were encountered: