Skip to content

Commit 407d935

Browse files
Version 0.2.3 Released
1 parent cb62fcb commit 407d935

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [0.2.3] - Oct 29 2022.
2+
* Fixes:
3+
* Fixed values of isPaused and isResumed parameters of CountDownController.
4+
5+
* Features:
6+
* Added parameter (isRestarted) in CountDownController to get the restart status of Countdown Timer.
7+
* 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.
18
## [0.2.2] - Jun 23 2022.
29
* Fixes:
310
* Showed duration value when autoStart is false.

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ CircularCountDownTimer(
4444
onChange: (String timeStamp) {
4545
debugPrint('Countdown Changed $timeStamp');
4646
},
47+
timeFormatterFunction: (defaultFormatterFunction, duration) {
48+
if (duration.inSeconds == 0) {
49+
return "Start";
50+
} else {
51+
return Function.apply(defaultFormatterFunction, [duration]);
52+
}
53+
},
4754
);
4855
```
4956

@@ -73,6 +80,7 @@ CircularCountDownTimer(
7380
|`onStart`|`VoidCallback`|null|*This Callback will execute when the Countdown Starts.*|
7481
|`onComplete`|`VoidCallback`|null|*This Callback will execute when the Countdown Ends.*|
7582
|`onChange`|`ValueChanged<String>`|null|*This Callback will execute when the Countdown Changes.*|
83+
|`timeFormatterFunction`|`Function(Function(Duration duration) defaultFormatterFunction,Duration duration)`|null|*This Callback allows you to format the current duration to any String in Countdown Widget.*|
7684

7785
## Demo
7886

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: circular_countdown_timer
22
description: Make an animated circular countdown using Circular Countdown Timer.
3-
version: 0.2.2
3+
version: 0.2.3
44
homepage: https://github.com/MuhammadUsamaSiddiqui/circular_countdown_timer
55

66
environment:

0 commit comments

Comments
 (0)