Skip to content
pubscout

flutter_pin_code_fields

2.2.0, released 4 years ago by sanifhimani.com

Generate customizable pin code fields for login pins or OTP inputs in Flutter.

WASM-ready
$ flutter pub add flutter_pin_code_fields
Source repository

What it does

Provides a customizable widget for entering pin codes or OTPs. Supports features like text obscuring, animations, auto-fill hints, responsive sizing, and custom input formatters.

AI-written summary of version 2.2.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need an OTP input field for authentication flows.
  • You require a pin code entry widget with custom borders, styling, and animations.

Skip it when

  • You need standard text input fields instead of segmented pin code inputs.

Strengths

  • Highly customizable with border styles, colors, and dimensions
  • Supports animations, autofill hints, and autofocus
  • Responsive layout that adjusts to available space

Weaknesses

  • Limited to pin code and OTP entry use cases

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
PinCodeFields(
  onComplete: (text) => print(text),
)

Alternatives

Packages that do the same job and could replace flutter_pin_code_fields.