NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #4979 most downloaded on pub.dev
A flutter package which will help you to generate pin code fields with beautiful design and animations. Can be useful for OTP or pin code inputs.
Last release 2 months ago
19 Jul 2026
Release timing varies
gaps range from 3 weeks to 1.3 years
Nearly every release is documented
notes for 43 of 43 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
43 releases · first in 2021
Renamed the library product name in Package.swift from otp_pin_field to otp-pin-field (with hyphens) to align with Flutter's package product name gene
Package.swift from otp_pin_field to otp-pin-field (with hyphens) to align with Flutter's package product name generation.Removed the invalid remote dependency on flutter/packages in Package.swift that was causing SwiftPM dependency resolution failure.
flutter/packages in Package.swift that was causing SwiftPM dependency resolution failure.One column per quarter.
Swift Package Manager (SPM) Migration:
.iOS(.v12) in Package.swift and s.platform = :ios, '12.0' in otp_pin_field.podspec).OtpPinFieldPlugin.h & OtpPinFieldPlugin.m).@objc annotation for complete backward compatibility.Semantics wrapper with the key otp_pin_field_container and label 'otp_pin_field_container' around the field row layout.Key identifiers to inner TextFields, cell boxes, spacers, and cursors.Revised the changelog to document the latest changes.
Introduced a new example compatible with Flutter 3.29.0 to demonstrate plugin usage more effectively.
Added:
Improvements:
OtpPinFieldPlugin** Registration Fix:**
Updated:
pubspec.yaml to reflect new version and dependency updates.Introduced a new unFocusOnEnding property in the OtpPinField to improve usability.
Added:
unFocusOnEnding Option:
unFocusOnEnding property in the OtpPinField to improve usability.false).
Improvements:build.gradle to adopt Java 17 and Kotlin JVM target 17 for better compatibility and performance:compileOptions.sourceCompatibility updated from JavaVersion.VERSION_1_8 to JavaVersion.VERSION_17.kotlinOptions.jvmTarget updated from 1.8 to 17.universal_html package for WebAssembly compatibility (--wasm) has been acknowledged.- Documents updated.
Hint Text Support: Added new properties to show hint text in the OTP pin field:
Added:
showHintText: Allows displaying hint text inside the pin fields (default: false).hintText: Customizable hint text to display (default: '0').hintTextColor: Customize the color of the hint text (default: Colors.black45).Improvements:
autoFillEnable flag, ensuring that autofillHints is set to null when autoFillEnable == false. This prevents the SMS hint from being displayed when autofill is disabled.Fixed:
autoFocus property is enabled.Updated package with web,Macos,Windows and Linux support.
Documentation:
Formatted changelog file to include the latest versions.
Documentation:
Added handling for keyboard not opening issue in webview apps.
Improvements:
onFieldFocus method.Bug Fixes:
BoxDecoration.Documentation:
Add conditional for AGP <4.2 compatibility in Android configuration
Improvements:
Documentation:
Box border support for defaultPinBoxDecoration, roundedPinBoxDecoration, and custom in otpPinFieldDecoration.
Added:
defaultPinBoxDecoration, roundedPinBoxDecoration, and custom in otpPinFieldDecoration.Fixed:
borderRadius property with otpPinFieldDecoration.custom to avoid confusion when using underlinedPinBoxDecoration.Updated:
Refactored OtpPinFieldState to streamline decoration handling.
Improvements:
OtpPinFieldState to streamline decoration handling.foregroundBoxDecoration and integrated its logic into BoxDecoration.fieldBorderGradient with a fallback mechanism.Bug Fixes:
BoxDecoration.feat: Add support for custom border colors and width in OTP pin field
feat: Add support for custom border colors and width in OTP pin field
- Documents updated.
Resolved an issue where the keyboard would not open after clearing all text fields.
- Documents updated.
feat: Resolve autofillHints for iOS, enable suggestions and autocorrect, manage keyboard for Android
feat: Resolve autofillHints for iOS, enable suggestions and autocorrect, manage keyboard for Android
autofillHints not working on iOS by properly wrapping TextFields in AutofillGroup.AutofillHints.oneTimeCode in a TextField.AutofillGroup to support autofill functionalities.enableSuggestions and autocorrect properties are set to true in relevant TextFields.feat: Add flexibility to change border width for custom OtpPinFieldDecoration and handle OTP copy-paste scenarios
feat: Add flexibility to change border width for custom OtpPinFieldDecoration and handle OTP copy-paste scenarios
OtpPinFieldDecoration for enhanced customization.beforeTextPaste function to provide clear guidance on usage.Documentation:
OtpPinFieldDecoration.Added border gradient color property for active pin field box in OtpPinFieldStyle
border gradient color property for active pin field box in OtpPinFieldStyleborder gradient color property for filled pin field box in OtpPinFieldStyleborder gradient color property for default pin field box in OtpPinFieldStyleAdded border gradient color property in OtpPinFieldStyle
border gradient color property in OtpPinFieldStyle* documentation updated
fixed minor issue with animated cursor
prefilled color property in OtpPinFieldStyleAdded sms auto fill functionality
sms auto fill functionality(Hot Fix) added function to sms auto fill functionality for sms-regex
sms auto fill functionality for sms-regexdocumentation updated and minor bug fixes
Added functionality to add custom keyboard and also added ability to hide/un-hide the default keyboard of the OS
added function to clear the text field controller
clear the text field controller(Hot Fix)added function to clear the text field controller
clear the text field controllerHot fix for on change for on custom keyboard
Hot fix for Animation in custom keyboard
* Hot fix
Stable animation ,accessibility to manage otp pin field spacing and also added custom keyboard option in place on default keyboard
Stable animation ,accessibility to manage otp pin field spacing and also added custom keyboard option in place on default keyboard* Hot fix custom keyboard view
custom keyboard on submit callback issue resolved.
Removed unused imports to increase Pass static analysis.
added cursor with animation ,accessibility to manage otp pin field spacing and also added custom keyboard option in place on default keyboard
added onChange while entering the otp.
* FocusNode issue resolved.
* Example Added.
Initial release, working functionality.
Initial release, working base functionality.
Your coding agent can read these notes before it upgrades. Set up the MCP server →