Customizable PIN and OTP input fields for Flutter
open sourceMITfree
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.
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
