WOICountdowns constructor
const
WOICountdowns({
- required double timeInSeconds,
- double timerSize = 200,
- double timerWidth = 15,
- Color timerBackgroundColor = Colors.lightBlue,
- Color timerFillColor = Colors.orange,
- double cooldownTimerSize = 200,
- Widget? initialCooldownTimerCenter = const Icon(Icons.play_arrow_outlined, size: 100),
- BoxDecoration cooldownTimerBoxDecoration = const BoxDecoration(color: Colors.blueGrey, borderRadius: BorderRadius.all(Radius.circular(200))),
- int? coolDownTimerValue,
- TextStyle? coolDownTimerTextStyle,
- Widget? pausedTimerCenterWidget = const Icon(Icons.pause, size: 100),
- Widget? timerCompletionCenterWidget = const Icon(Icons.celebration, size: 100),
- dynamic onChange(
- double timerValue
- dynamic onStateChange(
- TimerState state
- Key? key,
Implementation
const WOICountdowns({
required this.timeInSeconds,
this.timerSize = 200,
this.timerWidth = 15,
this.timerBackgroundColor = Colors.lightBlue,
this.timerFillColor = Colors.orange,
this.cooldownTimerSize = 200,
this.initialCooldownTimerCenter = const Icon(
Icons.play_arrow_outlined,
size: 100,
),
this.cooldownTimerBoxDecoration = const BoxDecoration(
color: Colors.blueGrey,
borderRadius: BorderRadius.all(
Radius.circular(200),
),
),
this.coolDownTimerValue,
this.coolDownTimerTextStyle,
this.pausedTimerCenterWidget = const Icon(
Icons.pause,
size: 100,
),
this.timerCompletionCenterWidget = const Icon(
Icons.celebration,
size: 100,
),
this.onChange,
this.onStateChange,
super.key,
});