fancy_timer 2.0.0+1 copy "fancy_timer: ^2.0.0+1" to clipboard
fancy_timer: ^2.0.0+1 copied to clipboard

A customizable flutter widget that produces a fancy timer with multiple customizable options

Buy Me A Coffee

Introduction #

If you want a widget to display a timer on the screen without too much hustle? If so, fancy_timer can help you a lot.

Basic Usage #

The most simple usage is just passing the desired duration to the FancyTimer widget. Duration is the only required parameter. By just doing that you will already have a beautifull timer on your screen.

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
          body: Center(
              child: FancyTimer(
                    duration: Duration(seconds: 10),
              ),
          ),
      ),
    );
  }
}

enter image description here

Customisation #

If you want you can customise almost any aspect of the widget like the separator widget or maybe the decoration of your digits.

End Callback #

You can pass a callback function on the onTimerEnd parameter. That callback is executed after the timer ends.

enter image description here

Todo #

  • Tests
  • Adjust for using high number of days

Suggestions & Bugs #

For any suggestions or bug report please head to issue tracker.

3
likes
140
pub points
40%
popularity

Publisher

verified publisherrodrigobastos.dev

A customizable flutter widget that produces a fancy timer with multiple customizable options

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on fancy_timer