otp_text_field 1.0.1

Flutter Android iOS web

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.

17
likes
95
pub points
93%
popularity

Publisher

vivekkaushik.com

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