PackageTrack
Sign in Get early access

otp_pin_field

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.

1.5.2 2.6K downloads/mo #4872 most downloaded on pub.dev shivbo96/otp_pin_field

What this package is like to depend on

Last release 1 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

3 releases in the last 12 months

see the full history below

Release timeline

43 releases · Sep 2021 to Jul 2026
2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 43
  1. 1.5.2 19 Jul 2026
    Release notes
    • iOS SwiftPM Product Name Fix:
      • 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 generation.
    Open source →
  2. 1.5.1 18 Jul 2026
    Release notes
    • iOS SwiftPM Build Fix:
      • Removed the invalid remote dependency on flutter/packages in Package.swift that was causing SwiftPM dependency resolution failure.
    Open source →
  3. 1.5.0 15 Jul 2026
    Release notes
    • Swift Package Manager (SPM) Migration:
      • Migrated the native iOS codebase to fully support Swift Package Manager (SPM).
      • Upgraded minimum iOS platform target to iOS 12.0 (.iOS(.v12) in Package.swift and s.platform = :ios, '12.0' in otp_pin_field.podspec).
      • Simplified the iOS module to a modern Swift-only plugin by removing the legacy Objective-C bridge files (OtpPinFieldPlugin.h & OtpPinFieldPlugin.m).
      • Exposed the Swift class registration to Objective-C using the @objc annotation for complete backward compatibility.
    • Accessibility & Testing Enhancements:
      • Added Semantics wrapper with the key otp_pin_field_container and label 'otp_pin_field_container' around the field row layout.
      • Embedded testing automation Key identifiers to inner TextFields, cell boxes, spacers, and cursors.
    Open source →
  4. 1.4.1 03 Apr 2025
    Release notes
    • Changelog & Readme:
      • Revised the changelog to document the latest changes.
      • Updated Readme file.
    Open source →
  5. 1.4.0 13 Feb 2025
    Release notes

    Added:

    • New Flutter 3.29.0 Example:
      • Introduced a new example compatible with Flutter 3.29.0 to demonstrate plugin usage more effectively.

    Improvements:

    • OtpPinFieldPlugin** Registration Fix:**
      • Resolved an issue with the plugin's registration mechanism to improve reliability and stability.
    • Dependency Updates:
      • Updated project dependencies to their latest compatible versions for enhanced performance and security.

    Updated:

    • Changelog & Pubspec File:
      • Revised the changelog to document the latest changes.
      • Updated pubspec.yaml to reflect new version and dependency updates.
    Open source →
  6. 1.3.2 20 Jan 2025
    Release notes

    Added:

    • unFocusOnEnding Option:
      • Introduced a new unFocusOnEnding property in the OtpPinField to improve usability.
      • When enabled, the field will automatically lose focus once the user has completed input (default: false). Improvements:
    • Build Configuration Modernization:
      • Updated 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.
      • These changes align the project with modern Java/Kotlin standards and ensure support for newer tools and libraries. Acknowledged:
      • WebAssembly Compatibility:
      • Community feedback to use the universal_html package for WebAssembly compatibility (--wasm) has been acknowledged.
      • This enhancement is under review for future implementation.
    Open source →
  7. 1.3.1 25 Oct 2024
    Release notes
    • Documents updated.
    Open source →
  8. 1.3.0 24 Oct 2024
    Release notes

    Added:

    • Hint Text Support: Added new properties to show hint text in the OTP pin field:
      • 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:

    • Added logic to respect 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:

    • Fixed autofocus behavior on the web. Autofocus is now correctly respected on web platforms if the autoFocus property is enabled.
    Open source →
  9. 1.3.0+1 25 Oct 2024
    Release notes

    Documentation:

    • Updated package with web,Macos,Windows and Linux support.
    • Formatted changelog file to include the latest versions.
    • updated README file with the latest changes and usage instructions.
    Open source →
  10. 1.3.0+2 25 Oct 2024
    Release notes

    Documentation:

    • Formatted changelog file to include the latest versions.
    • Updated README file with the latest changes and usage instructions.
    Open source →
  11. 1.2.9 10 Jul 2024
    Release notes

    Improvements:

    • Added handling for keyboard not opening issue in webview apps.
    • Improved focus management for webview apps in the onFieldFocus method.

    Bug Fixes:

    • Fixed potential issues with the decoration logic by consolidating it within BoxDecoration.
    • Addressed minor inconsistencies in field highlighting and cursor behavior.

    Documentation:

    • Updated README file with the latest changes and usage instructions.
    • Updated changelog file with version 1.2.9 release notes.
    Open source →
  12. 1.2.9+1 30 Jul 2024
    Release notes

    Improvements:

    • Add conditional for AGP <4.2 compatibility in Android configuration

    Documentation:

    • Updated changelog file with version 1.2.9+1 release notes.
    Open source →
  13. 1.2.8 04 Jul 2024
    Release notes

    Added:

    • Box border support for defaultPinBoxDecoration, roundedPinBoxDecoration, and custom in otpPinFieldDecoration.
    • Enhanced customization options for OTP pin fields, including border radius and box shadow properties.

    Fixed:

    • Clarified the usage of borderRadius property with otpPinFieldDecoration.custom to avoid confusion when using underlinedPinBoxDecoration.

    Updated:

    • Updated documentation and example code to demonstrate new features and proper usage of custom decorations.
    Open source →
  14. 1.2.8+1 09 Jul 2024
    Release notes

    Improvements:

    • Refactored OtpPinFieldState to streamline decoration handling.
    • Removed foregroundBoxDecoration and integrated its logic into BoxDecoration.
    • Improved handling of fieldBorderGradient with a fallback mechanism.
    • Enhanced code readability and maintainability.

    Bug Fixes:

    • Fixed potential issues with the decoration logic by consolidating it within BoxDecoration.
    • Addressed minor inconsistencies in field highlighting and cursor behavior.
    Open source →
  15. 1.2.7 04 Jul 2024
    Release notes

    feat: Add support for custom border colors and width in OTP pin field

    • Added ability to customize border colors using defaultFieldBorderColor and activeFieldBorderColor properties.
    • Introduced fieldBorderWidth property to set the width of the border.
    • Updated documentation to guide users on how to achieve custom border effects.
    Open source →
  16. 1.2.7+1 04 Jul 2024
    Release notes
    • Documents updated.
    Open source →
  17. 1.2.6 03 Jul 2024
    Release notes
    • Resolved an issue where the keyboard would not open after clearing all text fields.
    Open source →
  18. 1.2.6+1 03 Jul 2024
    Release notes
    • Documents updated.
    Open source →
  19. 1.2.5 02 Jul 2024
    Release notes

    feat: Resolve autofillHints for iOS, enable suggestions and autocorrect, manage keyboard for Android

    • Resolved the issue with autofillHints not working on iOS by properly wrapping TextFields in AutofillGroup.
    • Improved keyboard handling for Android to ensure seamless user interaction.
    • Added a demo implementation for OTP autofill using AutofillHints.oneTimeCode in a TextField.
    • Wrapped TextFields in AutofillGroup to support autofill functionalities.
    • Ensured enableSuggestions and autocorrect properties are set to true in relevant TextFields.
    • Managed keyboard types and behaviors for both iOS and Android to ensure consistent behavior across platforms.
    Open source →
  20. 1.2.5+2 03 Jul 2024
    Release notes

    feat: Add flexibility to change border width for custom OtpPinFieldDecoration and handle OTP copy-paste scenarios

    • Added support to change border width in custom OtpPinFieldDecoration for enhanced customization.
    • Improved OTP copy-paste functionality:
      • Handled cases where copied string includes non-numeric characters.
      • Managed scenarios where copied numeric string is shorter than the max length of the OTP PinField.
    • Updated documentation for the beforeTextPaste function to provide clear guidance on usage.
    • Updated CHANGELOG and README to reflect new features and improvements.

    Documentation:

    • Added details about new border width customization option in OtpPinFieldDecoration.
    • Provided examples and explanation on handling copy-paste functionality for OTP fields.
    Open source →
  21. 1.2.4 14 May 2024
    Release notes
    • Added border gradient color property for active pin field box in OtpPinFieldStyle
    • Added border gradient color property for filled pin field box in OtpPinFieldStyle
    • Added border gradient color property for default pin field box in OtpPinFieldStyle
    • dart formatted
    Open source →
  22. 1.2.3 13 May 2024
    Release notes
    • Added copy paste OTP feature
    • Added border gradient color property in OtpPinFieldStyle
    • dart formatted
    Open source →
  23. 1.2.2 18 Jul 2023
    Release notes
    • documentation updated
    Open source →
  24. 1.2.1 18 Jul 2023
    Release notes
    • fixed minor issue with animated cursor
    • added prefilled color property in OtpPinFieldStyle
    • documentation updated
    Open source →
  25. 1.2.0 20 Apr 2023
    Release notes
    • Added sms auto fill functionality
    Open source →
  26. 1.2.0+1 20 Apr 2023
    Release notes
    • (Hot Fix) added function to sms auto fill functionality for sms-regex
    Open source →
  27. 1.2.0+2 20 Apr 2023
    Release notes
    • documentation updated and minor bug fixes
    Open source →
  28. 1.1.2 02 Jan 2023
    Release notes
    • Added functionality to add custom keyboard and also added ability to hide/un-hide the default keyboard of the OS
    Open source →
  29. 1.1.2+1 20 Jan 2023
    Release notes
    • added function to clear the text field controller
    Open source →
  30. 1.1.2+2 20 Jan 2023
    Release notes
    • (Hot Fix)added function to clear the text field controller
    Open source →
  31. 1.1.1 01 Dec 2022
    Release notes
    • Hot fix for on change for on custom keyboard
    Open source →
  32. 1.1.1+1 01 Dec 2022
    Release notes
    • Hot fix for Animation in custom keyboard
    Open source →
  33. 1.1.1+2 01 Dec 2022
    Release notes
    • Hot fix
    Open source →
  34. 1.1.0 30 Nov 2022
    Release notes
    • Stable animation ,accessibility to manage otp pin field spacing and also added custom keyboard option in place on default keyboard
    Open source →
  35. 1.1.0+1 30 Nov 2022
    Release notes
    • Hot fix custom keyboard view
    Open source →
  36. 1.0.4 29 Nov 2022
    Release notes
    • custom keyboard on submit callback issue resolved.
    Open source →
  37. 1.0.4+1 30 Nov 2022
    Release notes
    • Removed unused imports to increase Pass static analysis.
    Open source →
  38. 1.0.3 29 Nov 2022
    Release notes
    • added cursor with animation ,accessibility to manage otp pin field spacing and also added custom keyboard option in place on default keyboard
    Open source →
  39. 1.0.2 29 Jul 2022
    Release notes
    • added onChange while entering the otp.
    Open source →
  40. 1.0.1 24 Feb 2022
    Release notes
    • FocusNode issue resolved.
    Open source →
  41. 1.0.0 05 Sep 2021
    Release notes
    • Example Added.
    Open source →
  42. 0.0.2 05 Sep 2021
    Release notes
    • Initial release, working functionality.
    Open source →
  43. 0.0.1 05 Sep 2021
    Release notes
    • Initial release, working base functionality.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive