otp_pin 0.1.1 copy "otp_pin: ^0.1.1" to clipboard
otp_pin: ^0.1.1 copied to clipboard

outdated

A Flutter OTP Pin package.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:otp_pin/otp_pin.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'OTP PIN Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: OtpWidget(
        "OTP PIN",
        "user@example.com",
        onFill: (pin) {
          print("The pin is: $pin");
        },
        onResend: () {
          print("resend pressed");
        },
      ),
    );
  }
}
0
likes
30
pub points
9%
popularity

Publisher

unverified uploader

A Flutter OTP Pin package.

Repository (GitHub)
View/report issues

License

Apache-2.0 (LICENSE)

Dependencies

flutter, flutter_screenutil

More

Packages that depend on otp_pin