MyCircularCountdownTimer constructor
const
MyCircularCountdownTimer({
- Key? key,
- int years = 0,
- int months = 0,
- int weeks = 0,
- int days = 0,
- int hours = 0,
- int minutes = 0,
- int seconds = 0,
- VoidCallback? onComplete,
- ValueChanged<
CountdownTime> ? onPlay, - ValueChanged<
CountdownTime> ? onPause, - ValueChanged<
CountdownTime> ? onChangedTime, - double size = 200,
- double strokeWidth = 10,
- Color backgroundColor = Colors.transparent,
- Color progressColor = Colors.green,
- Gradient? progressGradient,
- TextStyle textStyle = const TextStyle(fontSize: 18, fontWeight: FontWeight.bold, color: Colors.black),
- bool autoStart = true,
- bool showControlButton = true,
- Alignment controlButtonAlignment = Alignment.bottomCenter,
- double controlButtonContainerWidth = 60,
- double controlButtonContainerHeight = 60,
- double controlButtonIconSize = 30,
- Color controlButtonBackgroundColor = Colors.white,
- Color controlButtonIconColor = Colors.black,
- double controlButtonBorderRadius = 30,
- double bottomOverlayHeight = 40,
Implementation
const MyCircularCountdownTimer({
super.key,
this.years = 0,
this.months = 0,
this.weeks = 0,
this.days = 0,
this.hours = 0,
this.minutes = 0,
this.seconds = 0,
this.onComplete,
this.onPlay,
this.onPause,
this.onChangedTime,
this.size = 200,
this.strokeWidth = 10,
this.backgroundColor = Colors.transparent,
this.progressColor = Colors.green,
this.progressGradient,
this.textStyle = const TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
color: Colors.black,
),
this.autoStart = true,
this.showControlButton = true,
this.controlButtonAlignment = Alignment.bottomCenter,
this.controlButtonContainerWidth = 60,
this.controlButtonContainerHeight = 60,
this.controlButtonIconSize = 30,
this.controlButtonBackgroundColor = Colors.white,
this.controlButtonIconColor = Colors.black,
this.controlButtonBorderRadius = 30,
this.bottomOverlayHeight = 40,
});