otp_input

Last updated:

0 purchases

otp_input Image
otp_input Images
Add to Cart

Description:

otp input

OtpInputField #
A Flutter package that provides a customizable OTP (One-Time Password) input field.
Installation #
To use this package, add otp_input as a dependency in your pubspec.yaml file:
dependencies:
otp_input: ^1.0.3
copied to clipboard
Then run #
flutter pub get
copied to clipboard
Usage #
Import the package in your Dart file:
import 'package:otp_input/otp_input.dart';
copied to clipboard
Add the OtpInputField widget to your widget tree:
OtpInputField(
otpInputFieldCount: 4,
width: 0.2,
onOtpEntered: (otp) {
print('Entered OTP: $otp');
// Perform actions with the entered OTP
},
)
copied to clipboard
Properties #

otpInputFieldCount: The number of OTP input fields.
width: The width factor of each input field, a value between 0.0 and 1.0.
onOtpEntered: Callback function triggered when all OTP fields are filled.

Issues and Contributions #
Feel free to open issues or contribute to this package on GitHub.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.