WOICountdownTimer constructor
const
WOICountdownTimer({
- double timerHeight = 250,
- double timerWidth = 300,
- double horizontalPadding = 25,
- double verticalPadding = 15,
- double timerFontSize = 35,
- double scrollableHeight = 140,
- double scollableWidth = 50,
- double scrollableTileSize = 50,
- Function? onStart,
- dynamic onPause(
- int timeValueInSeconds
- Function? onStop,
- bool isHoursNeeded = false,
- Widget startButtonWidget = const Text('Start', style: TextStyle(color: Colors.white, fontSize: 25)),
- Widget pauseButtonWidget = const Text('Pause', style: TextStyle(color: Colors.white, fontSize: 25)),
- Widget stopButtonWidget = const Text('Stop', style: TextStyle(color: Colors.white, fontSize: 25)),
- bool changeSeparatorColor = false,
- Color selectedTimerValueColor = Colors.white,
- Color unselectedTimerValueColor = Colors.grey,
- TextStyle labelTextStyle = const TextStyle(color: Colors.white),
- BoxDecoration timerBoxDecoration = const BoxDecoration(borderRadius: BorderRadius.all(Radius.circular(20)), color: Colors.black),
- BoxDecoration? pauseButtonBoxDecoration,
- BoxDecoration? stopButtonBoxDecoration,
- BoxDecoration? startButtonBoxDecoration,
- double? pauseButtonHeight,
- double? pauseButtonWidth,
- double? startButtonHeight,
- double? startButtonWidth,
- double? stopButtonHeight,
- double? stopButtonWidth,
- Key? key,
Implementation
const WOICountdownTimer(
{this.timerHeight = 250,
this.timerWidth = 300,
this.horizontalPadding = 25,
this.verticalPadding = 15,
this.timerFontSize = 35,
this.scrollableHeight = 140,
this.scollableWidth = 50,
this.scrollableTileSize = 50,
this.onStart,
this.onPause,
this.onStop,
this.isHoursNeeded = false,
this.startButtonWidget = const Text(
'Start',
style: TextStyle(color: Colors.white, fontSize: 25),
),
this.pauseButtonWidget = const Text(
'Pause',
style: TextStyle(color: Colors.white, fontSize: 25),
),
this.stopButtonWidget = const Text(
'Stop',
style: TextStyle(color: Colors.white, fontSize: 25),
),
this.changeSeparatorColor = false,
this.selectedTimerValueColor = Colors.white,
this.unselectedTimerValueColor = Colors.grey,
this.labelTextStyle = const TextStyle(color: Colors.white),
this.timerBoxDecoration = const BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(20),
),
color: Colors.black,
),
this.pauseButtonBoxDecoration,
this.stopButtonBoxDecoration,
this.startButtonBoxDecoration,
this.pauseButtonHeight,
this.pauseButtonWidth,
this.startButtonHeight,
this.startButtonWidth,
this.stopButtonHeight,
this.stopButtonWidth,
super.key});