DizoftTeam / DizoftTeam/simple_count_down
Create multiple timers at the same time, display exception
- Dominant language
- Dart
- Stars
- 60
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Description
Create multiple timers at the same time, display exception
The previous timer will reset the time, and the next one will inherit the remaining time of the previous one
```dart
Widget _timerCountDown() {
return Countdown(
// controller: timerController,
seconds: 120,
build: (BuildContext context, double time) {
if (time < 5.0) {
return Text("ღ( ´・ᴗ・` )",style: TextStyle(color: Colors.white),);
}else{
return Text(time.toString(),style: TextStyle(color: Colors.white),);
}
},
interval: Duration(milliseconds: 100),
onFinished: () {
print('Timer is done!');
},
);
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.