countdown_pill 1.0.6 copy "countdown_pill: ^1.0.6" to clipboard
countdown_pill: ^1.0.6 copied to clipboard

A customizable countdown pill widget with different time formats and animations.

countdown_pill #

A customizable countdown timer widget for Flutter, with real-time updates, flexible styling options, and optional animations.

Features #

  • Real-time countdown updates every second.
  • Highly customizable text style and decoration (padding, color, border radius, etc.).
  • Optional scale animation effect for a dynamic, engaging UI.
  • Supports dynamic size and flexible layout with various formatting options.
  • Simple API design with minimal setup.
  • Lightweight and easy to integrate into any Flutter project.

Installation #

Add the following to your pubspec.yaml:

  countdown_pill: ^1.0.0

Basic Example #

CountdownPill(
    targetDate: DateTime(2025, 3, 25),
    format: '{d} days {H} hours {M} minutes {S} seconds',
)

Custom Styling Example #

CountdownPill(
      targetDate: DateTime(2025, 3, 25),
      format: '{d} days {H} hours {M} minutes {S} seconds',
      animate: false,
      decoration: BoxDecoration(
        color: Colors.green,
        borderRadius: BorderRadius.circular(20),
        border: Border.all(color: Colors.black, width: 2),
      ),
      textStyle: TextStyle(fontSize: 16, color: Colors.white),
)

For animation #

animate: true
3
likes
140
points
28
downloads

Publisher

unverified uploader

Weekly Downloads

A customizable countdown pill widget with different time formats and animations.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, intl

More

Packages that depend on countdown_pill