circular_timer 1.0.4 copy "circular_timer: ^1.0.4" to clipboard
circular_timer: ^1.0.4 copied to clipboard

Circular Timer Widget for Flutter Application


Circular Timer

This flutter package give a circular timer widget that is very easy to use and with a smooth animation

---

Features #

Light package that works this PLATFORM: ANDROID IOS LINUX MACOS WEB WINDOWS

![timer](https://res.cloudinary.com/dtmbsttms/image/upload/v1655903930/timer_or4ue6.gif | width=500) ![outlined_timer](https://res.cloudinary.com/dtmbsttms/image/upload/v1655903930/outlined-timer_uk3dqm.gif | width=500)

Getting started #

TO install

flutter pub add circular_timer: ^1.0.1

Usage #

Basic usage

 CircularTimer(
    duration: const Duration(seconds: 30),
    radius: 100,
  ),
To change the default color, use the color property
 CircularTimer(
   duration: const Duration(seconds: 10),
   radius: 100,
   color: Colors.green,
 ),
To repeat the timer after the duration is completed set repeat: true the default value is false.
 CircularTimer(
   duration: const Duration(seconds: 10),
   radius: 100,
   color: Colors.green,
   repeat: true,
 ),
The startAngle is the position where it starts counting ` its value must be in radian`
startAngle default value is set to 1.5 * math.pi
To form a ring around the circular timer:
you have to set outline: true
the ring width can change by setting the outlinedWidth to a nonNegative value

OutlinedPadding is the distance between the ring and the circular timer and can be set to zero to form a border. The default outlinedPadding value is 4.0

 CircularTimer(
   duration: const Duration(seconds: 10),
   radius: 100,
   color: Colors.green,
   repeat: true,
   outline: true,
   outlinedPadding: 0.0
   outlinedWidth: 3.0
 ),

CircularTimer has a decorationproperty that allow you the rewrite the default outlinedColor that is the ring color`

   CircularTimer(
    duration: const Duration(seconds: 10),
    radius: 100,
    color: Colors.green,
    decoration: CircleDecoration(
      outlinedColor: Colors.green
    )
  ),
you can rewrite the outlinestyle and circleStyle inside the CircleDecoration

Additional information #

To contribute to this package

https://github.com/morka17/circular_timer

To file any issues

https://github.com/morka17/circular_timer/issues
2
likes
110
pub points
51%
popularity

Publisher

unverified uploader

Circular Timer Widget for Flutter Application

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on circular_timer