OTP Text Field

Additional

Language
Dart
Version
N/A
Created
Mar 8, 2020
Updated
Mar 27, 2020
Owner
Vivek Kaushik (iamvivekkaushik)
Contributor
Vivek Kaushik (iamvivekkaushik)
1
Activity
Badge
Generate
Download
Source code

Announcement

OTP Text Field

A flutter package to create a OTP Text Field widget in your application.


👨‍💻 Usage

Use the OTP Text Field 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.