flutter_pausable_countdown_timer 1.0.0

SDKflutter
Platformandroidioswindowslinuxmacosweb

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

NameTypeDefault ValueDescription
secondsintrequiredSeconds to count down.
textStyleTextStyle?nullCustomize textstyle.
pauseActionvoid Function()?nullpause action.
restartActionvoid Function()?nullrestart action.
finishActionvoid Function()?nullfinish 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