Giter Club home page Giter Club logo

circular_timer's Introduction


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

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

circular_timer's People

Contributors

morka17 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.