otp_text_field 1.0.0 otp_text_field: ^1.0.0 copied to clipboard
A flutter package to create a OTP Text Field widget in your application.
OTP Text Field
A flutter package to create a OTP Text Field widget in your application.
Stay tuned for the latest updates:
π±Screenshots #
βοΈ Installation #
Import the following package in your dart file
import 'package:otp_text_field/otp_field.dart';
import 'package:otp_text_field/style.dart';
π¨βπ» Usage #
Use the Awesome Card
Widget
OTPTextField(
length: 5,
width: MediaQuery.of(context).size.width,
fieldWidth: 80,
style: TextStyle(
fontSize: 17
),
textFieldAlignment: MainAxisAlignment.spaceAround,
fieldStyle: FieldStyle.underline,
onCompleted: (pin) {
print("Completed: " + pin);
},
),
For more detail on usage, check out the example provided.
ππ»ββοΈ Author #
π License #
OTP Text Field is released under the MIT license. See LICENSE for details.