Search packages, repositories and app categories

GitHub repositoryDizoftTeam/simple_count_down

simple_count_down

Simple countdown (timer) for Flutter

simple_count_down project cover
Stars
60
Forks
24
Last push (UTC)
Aug 5, 2023
Project status
Active

Original README

English project snapshot. Visit GitHub 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!

Dizoft Team GitHub avatar
GitHub author

Dizoft Team ↗

LanguagesDartSwiftKotlinObjective-C

Categories

Packages published by this repository

Dependencies used

Dependency list 3 items

  • flutter{"sdk":"flutter"}
  • lintDevelopment^1.3.0
  • pedanticDevelopment^1.9.0

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗