timer_count_down 2.1.0+1 copy "timer_count_down: ^2.1.0+1" to clipboard
timer_count_down: ^2.1.0+1 copied to clipboard

outdated

Simple CountDown timer. Using for create a simple timer. It's pure all

Simple Count Down #

A highly customizable countdown widget for Flutter, with support for custom styling, intervals, and onFinished callbacks.

Preview #

How to use #

Simple example below. For full example check example folder.

class MyWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Countdown(
      seconds: 20,
      build: (BuildContext context, double time) => Text(time.toString()),
      interval: Duration(milliseconds: 100),
      onFinished: () {
        print('Timer is done!');
      },
    );
  }
}

For pause, restart and resume you need to use CountdownController. For example check example as is

Installing #

Go to the package on pub-web.flutter-io.cn, check the latest version, and add it to your pubspec.yaml file in the dependency section.

179
likes
0
pub points
98%
popularity

Publisher

verified publisherdizoft.ru

Simple CountDown timer. Using for create a simple timer. It's pure all

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on timer_count_down