Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/circular_countdown_timer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ class CircularCountDownTimer extends StatefulWidget {
/// Controls (i.e Start, Pause, Resume, Restart) the Countdown Timer.
final CountDownController? controller;

// Configures how an Circular Countdown Timer behaves when animations are disabled.
final AnimationBehavior animationBehavior;

/// Handles the timer start.
final bool autoStart;

Expand Down Expand Up @@ -114,6 +117,7 @@ class CircularCountDownTimer extends StatefulWidget {
this.autoStart = true,
this.textFormat,
this.controller,
this.animationBehavior = AnimationBehavior.normal
}) : assert(initialDuration <= duration);

@override
Expand Down Expand Up @@ -243,6 +247,7 @@ class CircularCountDownTimerState extends State<CircularCountDownTimer>
_controller = AnimationController(
vsync: this,
duration: Duration(seconds: widget.duration),
animationBehavior: widget.animationBehavior
);

_controller!.addStatusListener((status) {
Expand Down