- Updated package to the latest Flutter version.
-
Fixes:
- Fixed values of isPaused and isResumed parameters of CountDownController.
-
Features:
- Added parameter (isRestarted) in CountDownController to get the restart status of Countdown Timer.
- Added Optional parameter Function(Function(Duration duration) defaultFormatterFunction, Duration duration) named timeFormatterFunction that allows you to format the current duration to any String in Countdown Widget.
-
Fixes:
- Showed duration value when autoStart is false.
- If initialDuration is given, then timer doesn't starts. It hangs.
-
Features:
- Added parameters (isStarted, isPaused, isResumed) in CountDownController to get the current status of Countdown Timer.
- Added reset method in CountDownController to reset the Countdown Timer.
- Added Optional Parameter ValueChanged named onChange which will execute when the Countdown Changes.
- Updated package to latest Flutter version.
- Added Null Safety Support.
-
Added Optional Parameter:
- int named initialDuration to provide initial elapsed Duration in Seconds.
- Gradient named ringGradient to provide ring gradient for Countdown Widget.
- Gradient named fillGradient to provide filling gradient for Countdown Widget.
- Gradient named backgroundGradient to provide background gradient for Countdown Widget.
-
Changed Parameter name from color to ringColor.
-
Added CountdownTextFormat.S in CountdownTextFormat.
- Added Optional Parameter:
- bool named autoStart to handle timer start.
- String named textFormat to format Countdown Text.
- VoidCallback named onStart which will execute when the Countdown Starts.
- Fixed key issue.
- Added getTime method in CountDownController to get the Current Time of Countdown Timer.
- Added Optional Parameter StrokeCap named strokeCap for countdown begin and end contours.
-
Added Optional Parameter:
- Key named key for Countdown Timer.
- bool named isReverseAnimation to handle Animation Direction i.e Forward or Reverse.
-
Added optional int parameter named duration in restart method of CountDownController, to restart the countdown with new duration.
- Added optional Color parameter backgroundColor to change Background Color of Countdown Widget.
- Added optional CountDownController parameter controller to control (i.e Pause, Resume, Restart) the Countdown Timer.
- Contribution by Joshua de Guzman
- Added optional bool parameter isTimerTextShown to hide and show Timer Text.
- Refactor Logic for Animation.
- Added support to show Hours in Countdown Text.
- Changed Parameter name from:
- countdownTextStyle to textStyle.
- reverseOrder to isReverse.
- onCountDownComplete to onComplete.
- Fixed Crash on onCountDownComplete.
- Initial release.