Search packages, repositories and app categories

Package detailsv2.2.2

timer_count_down

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

AndroidiOSWebmacOSWindowsLinux
30-day downloads
29.7K
Likes
200
Pub points
150

Install package

flutter pub add timer_count_down

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A simple, pure Dart countdown timer package designed for creating basic timers with minimal setup. It supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux. Ideal for applications requiring a straightforward countdown functionality without complex dependencies. The package is lightweight and easy to integrate, making it suitable for use cases like timers in games, reminders, or timed challenges.

Use cases

  • Creating simple countdowns in apps
  • Implementing time-limited challenges
  • Building reminder or alarm systems
  • Adding timers to educational apps
  • Using in game mechanics
  • Displaying time-to-expiry indicators

Key features

  • Lightweight and pure Dart
  • Cross-platform support
  • Simple API for countdowns
  • No external dependencies
  • Easy integration with Flutter
  • Configurable countdown duration

Suitable for

  • Beginner Flutter developers
  • Simple timer implementations
  • Apps needing basic countdown logic
  • Projects with minimal dependencies
  • Time-based UI components

Considerations

  • Limited advanced features
  • Not suited for complex timing scenarios
  • No built-in pause/resume functionality
  • Requires manual handling of callbacks
  • Best for basic countdown needs only
  • No customization beyond basic settings

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Simple Count Down

pub

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

Preview

Installing

  • Add the latest version of the package to your pubspec.yaml file in the dependency section.
  dependencies:
    flutter:
      sdk: flutter

    timer_count_down: ^2.2.2

Run this in your terminal or click on pub get

$ flutter pub get

How to use

Simple example for the usage of the package is shown below.

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!');
      },
    );
  }
}

Example

For pause, restart and resume you need to use CountdownController. For an example of using the package, please check the example folder. Otherwise, keep reading and keep going!

Categories

Source repository

Projects using this package