timer_count_down 1.0.2 timer_count_down: ^1.0.2 copied to clipboard
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.
How to use #
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Countdown(
seconds: 20,
build: (_, double time) => Text(time.toString()),
interval: Duration(milliseconds: 100),
onFinished: () {
print('Timer is done!');
},
);
}
}
Installing #
Go to the package on pub.dev, check the latest version, and add it to your pubspec.yaml
file in the dependency section.