# pin_code_fields

> Customizable PIN and OTP input fields for Flutter

Source: https://talira.ai/catalog/pin-code-fields-7zcgar0r
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / ui components / forms](https://talira.ai/categories/libraries/ui-components/forms), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (MIT).
- Free tier: yes[^1]
- Backed by: [A. K. M. Saiful Islam](https://talira.ai/orgs/akm-saiful-islam.md)

pin_code_fields is a Flutter package for PIN code and one-time password input fields. It has a ready-made Material Design field and, since version 9, a headless core for building completely custom PIN UIs, with one controller for the text, focus and errors. It supports SMS OTP autofill on iOS and Android, outlined, filled, underlined and circle shapes, entry animations, a shake animation on error, haptic feedback, pasting from the clipboard, and form fields with validation.

## Links

- GitHub: https://github.com/adar2378/pin_code_fields

## Problems it solves

- add a six-digit OTP input to my Flutter sign-in screen
- let users autofill the SMS verification code in my Flutter app
- build a custom-styled PIN entry for an app lock screen in Flutter

## Features

- Material Design PIN field and a headless core for custom UIs
- PinInputController for text, focus and error state
- SMS OTP autofill on iOS and Android
- outlined, filled, underlined and circle shapes
- entry animations and a shake animation on errors
- form fields with validation
- paste from clipboard and haptic feedback

## Trust

Overall: 0.48 out of 1.
Signals: maintenance 0.73, adoption 0.58, momentum 0.30, community 0.34, backing 0.30, extensibility 0.00.

- last commit 10 days ago
- 20 commits in the last 90 days
- latest release V7.3.0 5.3 years ago
- 795 GitHub stars
- 6 contributors
- backed by A. K. M. Saiful Islam

## Related

- Works with [Flutter](https://talira.ai/catalog/flutter-nhwgvsth.md)

## Sources

[^1]: https://github.com/adar2378/pin_code_fields/blob/main/packages/pin_code_fields/README.md (checked 29 Nov 2026)
[^2]: https://github.com/adar2378/pin_code_fields/blob/main/packages/pin_code_fields/LICENSE (checked 29 Nov 2026)
