circular_countdown 1.0.0 circular_countdown: ^1.0.0 copied to clipboard
A package that represents a circular countdown that you can use for every kind of units (days, hours, seconds, points, ...) that could be decremented.
circular_countdown #
A package that represents a circular countdown that you can use for every kind of units (days, hours, seconds, points, ...) that could be decremented.
Getting Started #
In the pubspec.yaml
of your flutter project, add the following dependency:
dependencies:
...
circular_countdown: ^latest_version
In your library add the following import:
import 'package:circular_countdown/circular_countdown.dart';
For help getting started with Flutter, view the online documentation.
Example #
This is the way to create a simple static countdown.
import 'package:flutter/material.dart';
...
CircularCountdown(
countdownTotal: 10,
countdownRemaining: 7,
)
...
By playing with the parameters, you can change the size, the colors, the size of the gaps and the strokeWidth.
Demo #
A web demo is available here : https://mattisbrizard.github.io/circular_countdown/#/