pin_code_fields
10.1.2, released yesterday by theadar.xyz
A customizable PIN and OTP input field widget for Flutter with headless core and Material support.
WASM-readyUses material_ui
What it does
Provides highly customizable PIN and OTP input fields with support for shapes, animations, validation, form integration, and a headless core mode for complete UI customizability.
AI-written summary of version 10.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need OTP or SMS code verification fields in your app.
- You want support for custom PIN shapes like outlined, filled, underlined, or circle.
- You require a headless architecture to build a completely custom PIN input layout.
Skip it when
- You are not using the material_ui package ecosystem required by version 10.x.
Strengths
- Supports headless architecture for complete UI customization freedom.
- Built-in error handling with shake animations and form integration.
- Comprehensive styling options including text gradients, custom cursors, and obscure characters.
Weaknesses
- Version 10.x requires migration to the decoupled material_ui package.
- Tightly coupled to specific design system package requirements.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Requires material_ui package and matching Flutter version compatibility.
MaterialPinField(
length: 6,
onCompleted: (pin) => print('PIN: $pin'),
onChanged: (value) => print('Changed: $value'),
theme: MaterialPinTheme(
shape: MaterialPinShape.outlined,
cellSize: Size(56, 64),
borderRadius: BorderRadius.circular(12),
),
)Alternatives
Packages that do the same job and could replace pin_code_fields.
Works with
Packages commonly used together with pin_code_fields: ones it builds on, ones built on it, and its own family.