otp_timer_button 1.0.0 copy "otp_timer_button: ^1.0.0" to clipboard
otp_timer_button: ^1.0.0 copied to clipboard

outdated

A new Flutter project.

otp_timer_button #

This is a Flutter package for easy implementation otp timer button.

Installation #

Add the following to your pubspec.yaml file:

dependencies:
    otp_timer_button: ^1.0.0

Usage #

Import #

import 'package:otp_timer_button/otp_timer_button.dart';

Simple Example #

OtpTimerButtonController controller = OtpTimerButtonController();

@override
Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: OtpTimerButton(
          controller: controller,
          onPressed: () {},
          text: Text('Resend OTP'),
          duration: 60,
        ),
      ),
    );
}
25
likes
0
pub points
94%
popularity

Publisher

unverified uploader

A new Flutter project.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on otp_timer_button