circular_countdown 0.0.2 circular_countdown: ^0.0.2 copied to clipboard
An implementation of a circular countdown.
circular_countdown #
An implementation of a circular countdown.
Getting Started #
In the pubspec.yaml
of your flutter project, add the following dependency:
dependencies:
...
circular_countdown: ^0.0.1
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(
diameter: 250,
countdownTotal: 10,
countdownRemaining: 7,
)
...
By playing with the parameters, you can change the size, the colors, the size of the gaps and the strokeWidth.
Starting from this you can create animated countdown (see how in example).
Contributions #
Feel free to contribute to this project.
If you find a bug or want a feature, but don't know how to fix/implement it, please fill an issue.
If you fixed a bug or implemented a new feature, please send a pull request.