Skip to content

carlleeswanson/simple_count_down

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Count Down

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

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.dev, check the latest version, and add it to your pubspec.yaml file in the dependency section.

About

Simple countdown (timer) for Flutter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 89.6%
  • Kotlin 5.0%
  • Swift 4.9%
  • Objective-C 0.5%