flutter_pausable_countdown_timer 1.0.0 copy "flutter_pausable_countdown_timer: ^1.0.0" to clipboard
flutter_pausable_countdown_timer: ^1.0.0 copied to clipboard

It is a simple pausable countdown timer.

flutter_pausable_countdown_timer #

It is a simple pausable countdown timer.

Preview #

Getting Started #

Run this command:

flutter pub add circular_countdown_timer

Features #

  • Automatic start timer.
  • Customize textstyle.
  • There are three actions: pause, restart, and finish.

Usage #

CountdownTimer(
  seconds: 1000,
  textStyle: const TextStyle(fontSize: 100, fontWeight: FontWeight.bold),
  pauseAction: () {
    debugPrint('pause action');
  },
  restartAction: () {
    debugPrint('restart action');
  },
  finishAction: () {
    debugPrint('finish action');
  },
);

Parameters #

Name Type Default Value Description
seconds int required Seconds to count down.
textStyle TextStyle? null Customize textstyle.
pauseAction void Function()? null pause action.
restartAction void Function()? null restart action.
finishAction void Function()? null finish action.

Contributing #

Contributions are welcomed!

Here is a curated list of how you can help:

  • Report bugs and scenarios that are difficult to implement
  • Report parts of the documentation that are unclear
  • Fix typos/grammar mistakes
  • Update the documentation / add examples
  • Implement new features by making a pull-request
2
likes
130
pub points
31%
popularity

Publisher

unverified uploader

It is a simple pausable countdown timer.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_hooks

More

Packages that depend on flutter_pausable_countdown_timer