kr_otp 1.0.16 copy "kr_otp: ^1.0.16" to clipboard
kr_otp: ^1.0.16 copied to clipboard

A customizable OTP input field with an optional numeric keypad for Flutter.

Changelog #

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

1.0.16 2026-9-11 #

  • A key's letters now scale down to fit instead of ellipsizing, so a tight key shows "WXYZ" slightly smaller rather than "WX...".

1.0.15 2026-9-11 #

  • Fix KrOtpKeyboard silently dropping keypresses while typing quickly. Keys now fire on pointer down, so a press is no longer lost when the finger slides past the touch slop or when a second finger lands on a key that is already being tracked.
  • Fix a keypad key overflowing when the caller supplies larger text styles than the key fits; the letters now ellipsize instead.
  • Check for a vibrator once instead of on every keystroke.

1.0.14 2026-9-11 #

  • Fix OtpInputField overflowing on narrow screens. The digit boxes now share the available width and shrink to fit instead of overflowing.
  • Fix OtpController.shake() resetting the field to 6 digits, ignoring the configured length.

1.0.13 2025-4-30 #

  • Refactoring

1.0.12 2025-4-30 #

  • Update motion_toast package to latest version

1.0.11 2025-4-30 #

  • Update vibration package to latest version

1.0.10 - 2024-11-21 #

  • Add physical keys support to Keyboard widget (need focus node).

1.0.9 - 2024-10-10 #

  • Upgrade dependencies

1.0.8 - 2024-05-26 #

  • Add secondaryColor to the OtpInputField to make it more customizable.

1.0.7 - 2024-04-24 #

  • Add onKeyPressed to the KrOtpKeyboard to use it independently of the OtpInputField.
  • extract the shake method in the OtpController to maunually shake the OtpInputField.

1.0.6 - 2024-04-11 #

  • Update Example and README.md file

1.0.0 - 2024-04-11 #

  • Initial release of kr_otp.
  • Added OtpInputField class.
  • Introduced KrOtpKeyboard.
  • Provided example in the example directory.
2
likes
140
points
164
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A customizable OTP input field with an optional numeric keypad for Flutter.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_shakemywidget, motion_toast, vibration

More

Packages that depend on kr_otp