otp_pin_field 1.4.0 copy "otp_pin_field: ^1.4.0" to clipboard
otp_pin_field: ^1.4.0 copied to clipboard

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.

[0.0.1] -Release #

  • Initial release, working base functionality.

[0.0.2] -Release #

  • Initial release, working functionality.

[1.0.0] -Release #

  • Example Added.

[1.0.1] -Release #

  • FocusNode issue resolved.

[1.0.2] -Release #

  • added onChange while entering the otp.

[1.0.3] -Release #

  • added cursor with animation ,accessibility to manage otp pin field spacing and also added custom keyboard option in place on default keyboard

[1.0.4] -Release #

  • custom keyboard on submit callback issue resolved.

[1.0.4+1] -Release #

  • Removed unused imports to increase Pass static analysis.

[1.1.0] -Release #

  • Stable animation ,accessibility to manage otp pin field spacing and also added custom keyboard option in place on default keyboard

[1.1.0+1] -Release #

  • Hot fix custom keyboard view

[1.1.1] -Release #

  • Hot fix for on change for on custom keyboard

[1.1.1+1] -Release #

  • Hot fix for Animation in custom keyboard

[1.1.1+2] -Release #

  • Hot fix

[1.1.2] -Release #

  • Added functionality to add custom keyboard and also added ability to hide/un-hide the default keyboard of the OS

[1.1.2+1] -Release #

  • added function to clear the text field controller

[1.1.2+2] -Release #

  • (Hot Fix)added function to clear the text field controller

[1.2.0] -Release #

  • Added sms auto fill functionality

[1.2.0+1] -Release #

  • (Hot Fix) added function to sms auto fill functionality for sms-regex

[1.2.0+2] -Release #

  • documentation updated and minor bug fixes

[1.2.1] -Release #

  • fixed minor issue with animated cursor
  • added prefilled color property in OtpPinFieldStyle
  • documentation updated

[1.2.2] -Release #

  • documentation updated

[1.2.3] -Release #

  • Added copy paste OTP feature
  • Added border gradient color property in OtpPinFieldStyle
  • dart formatted

[1.2.4] -Release #

  • 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

[1.2.5] -Release #

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.

[1.2.5+2] -Release #

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.

[1.2.6] -Release #

  • Resolved an issue where the keyboard would not open after clearing all text fields.

[1.2.6+1] -Release #

  • Documents updated.

[1.2.7] -Release #

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.

[1.2.7+1] -Release #

  • Documents updated.

[1.2.8] - 2024-07-03 #

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.

[1.2.8+1] - 2024-07-09 #

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.

[1.2.9] - 2024-07-09 #

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.

[1.2.9+1] - 2024-07-30 #

Improvements:

  • Add conditional for AGP <4.2 compatibility in Android configuration

Documentation:

  • Updated changelog file with version 1.2.9+1 release notes.

[1.3.0] - 2024-10-23 #

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.

[1.3.0+1] - 2024-10-25 #

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.

[1.3.0+2] - 2024-10-25 #

Documentation:

  • Formatted changelog file to include the latest versions.
  • Updated README file with the latest changes and usage instructions.

[1.3.1] -Release #

  • Documents updated.

[1.3.2] - 2025-01-20 #

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.

[1.4.0] - 2025-02-13 #

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.
41
likes
140
points
3.61k
downloads

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, universal_html

More

Packages that depend on otp_pin_field