otp_text_field 1.1.3 copy "otp_text_field: ^1.1.3" to clipboard
otp_text_field: ^1.1.3 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:


Pub Twitter

πŸ“±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 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.

273
likes
145
points
33.1k
downloads

Publisher

verified publishervivekkaushik.com

Weekly Downloads

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on otp_text_field