otp_count_down 1.0.6 copy "otp_count_down: ^1.0.6" to clipboard
otp_count_down: ^1.0.6 copied to clipboard

A new dart package for easy implementation of OTP Count Down.

otp_count_down #

Easily implement the count down timer in Flutter Application.

Usage #

Import package:otp_count_down/otp_count_down.dart

Example:

import 'package:otp_count_down/otp_count_down.dart';

OTPCountDown _otpCountDown; // create instance
final int _otpTimeInMS = 1000 * 5 * 60;  // time in milliseconds for count down

_otpCountDown = OTPCountDown.startOTPTimer(
    timeInMS: _otpTimeInMS, // time in milliseconds
    currentCountDown: (String countDown) {
        print("Count down : $countDown"); // shows current count down time
    },
    onFinish: () {
        print("Count down finished!"); // called when the count down finishes.
    },
);

You will find links to the API docs on the pub page.

Getting Started #

For help getting started with Flutter, view our online documentation.

For help on editing plugin code, view the documentation.

7
likes
35
pub points
74%
popularity

Publisher

unverified uploader

A new dart package for easy implementation of OTP Count Down.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on otp_count_down