WOICountdownTimer constructor

const WOICountdownTimer({
  1. double timerHeight = 250,
  2. double timerWidth = 300,
  3. double horizontalPadding = 25,
  4. double verticalPadding = 15,
  5. double timerFontSize = 35,
  6. double scrollableHeight = 140,
  7. double scollableWidth = 50,
  8. double scrollableTileSize = 50,
  9. Function? onStart,
  10. dynamic onPause(
    1. int timeValueInSeconds
    )?,
  11. Function? onStop,
  12. bool isHoursNeeded = false,
  13. Widget startButtonWidget = const Text('Start', style: TextStyle(color: Colors.white, fontSize: 25)),
  14. Widget pauseButtonWidget = const Text('Pause', style: TextStyle(color: Colors.white, fontSize: 25)),
  15. Widget stopButtonWidget = const Text('Stop', style: TextStyle(color: Colors.white, fontSize: 25)),
  16. bool changeSeparatorColor = false,
  17. Color selectedTimerValueColor = Colors.white,
  18. Color unselectedTimerValueColor = Colors.grey,
  19. TextStyle labelTextStyle = const TextStyle(color: Colors.white),
  20. BoxDecoration timerBoxDecoration = const BoxDecoration(borderRadius: BorderRadius.all(Radius.circular(20)), color: Colors.black),
  21. BoxDecoration? pauseButtonBoxDecoration,
  22. BoxDecoration? stopButtonBoxDecoration,
  23. BoxDecoration? startButtonBoxDecoration,
  24. double? pauseButtonHeight,
  25. double? pauseButtonWidth,
  26. double? startButtonHeight,
  27. double? startButtonWidth,
  28. double? stopButtonHeight,
  29. double? stopButtonWidth,
  30. 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});