flutter_pin_text_field 2.0.0 copy "flutter_pin_text_field: ^2.0.0" to clipboard
flutter_pin_text_field: ^2.0.0 copied to clipboard

A highly customizable PIN input widget for Flutter with extensive styling options, multiple border types, and reliable input handling.

Changelog #

All notable changes to this project will be documented in this file.

2.0.0 - 2025-10-04 #

✨ Features #

  • Complete rewrite: Rebuilt the entire PIN input component from scratch
  • Configurable PIN length: Support for any number of PIN digits (not limited to 6)
  • Comprehensive styling system: New PinStyle class with extensive customization options
  • Multiple border types: Support for underline, outline, and none border styles
  • Background color support: Configurable background colors for normal and focused states
  • Auto-focus management: Automatic focus transition between input fields
  • Reliable deletion logic: Improved backspace handling with KeyboardListener
  • Input validation: Built-in support for numeric-only input with FilteringTextInputFormatter

🎨 Styling Options #

  • Configurable width, height, and spacing
  • Custom font size and colors
  • Border customization (color, width, radius)
  • Background color support
  • Cursor color customization

🔧 API Changes #

  • BREAKING: Replaced old PinTextField constructor parameters with PinStyle configuration
  • BREAKING: Changed callback signature from onFinished to onCompleted
  • NEW: Added onChanged callback for real-time input tracking
  • NEW: Added autoFocus, enabled, and keyboardType properties

🚀 Improvements #

  • Better performance with optimized state management
  • Cleaner and more maintainable codebase
  • Type-safe API with proper enums
  • Enhanced example app with multiple style demonstrations
  • Improved documentation and code comments

🐛 Bug Fixes #

  • Fixed deletion logic issues where backspace would stop working
  • Resolved focus management problems
  • Fixed state synchronization between input fields

1.0.0 Initial Release #

Features #

  • Basic PIN input functionality
  • Simple customization options
  • 6-digit PIN support
1
likes
160
points
31
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A highly customizable PIN input widget for Flutter with extensive styling options, multiple border types, and reliable input handling.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_pin_text_field