An open API service indexing awesome lists of open source software.

https://github.com/iamvivekkaushik/otptextfield

A flutter package for the OTP Field widget.
https://github.com/iamvivekkaushik/otptextfield

hacktoberfest otp-field-widget

Last synced: over 1 year ago
JSON representation

A flutter package for the OTP Field widget.

Awesome Lists containing this project

README

          


OTP Text Field

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

___

Stay tuned for the latest updates:


[![Pub](https://img.shields.io/pub/v/otp_text_field)](https://pub.dev/packages/otp_text_field)
[![Twitter](https://img.shields.io/badge/Twitter-@iamvivekkaushik-blue.svg?style=flat)](https://twitter.com/iamvivekkaushik)

## ๐Ÿ“ฑScreenshots





## โš™๏ธ Installation

Import the following package in your dart file

```dart
import 'package:otp_text_field/otp_field.dart';
import 'package:otp_text_field/style.dart';
```

## ๐Ÿ‘จโ€๐Ÿ’ป Usage

Use the `OTP Text Field` Widget

```dart
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

* [Vivek Kaushik](http://github.com/iamvivekkaushik/)

## ๐Ÿ“„ License

OTP Text Field is released under the MIT license.
See [LICENSE](./LICENSE) for details.