onscreen_keypad 1.1.0 copy "onscreen_keypad: ^1.1.0" to clipboard
onscreen_keypad: ^1.1.0 copied to clipboard

A customizable on-screen numeric keypad for Flutter apps. Ideal for PIN entry, authentication screens, and custom input fields with haptic feedback support.

1.1.0 #

Added #

  • KeypadController — the keypad now tracks the entered value for you, with append, backspace, clear, value, length and isComplete.
  • onCompleted, called with the full entry once the controller reaches its maxLength. It fires only on the press that completes the entry.
  • PinIndicator, a row of dots that follows a KeypadController.
  • shuffle and ReshuffleMode (once, everyKey, everyEntry, manual) to randomize digit positions for PIN entry. Action slots keep their positions. Uses Random.secure(); pass random: to seed it in tests.
  • KeypadTheme and KeypadThemeData to set keypad styling once for a subtree.
  • keyIconColor for icon-based keys.
  • package:onscreen_keypad/onscreen_keypad.dart as the canonical import, which is what the README documented. The previous entry points still re-export it.

Fixed #

  • hapticFeedbackType was declared but never passed to the keys, so every press triggered a light impact regardless of the value given.
  • notificationSuccess, notificationWarning and notificationError silently fell through to a light impact. They now map to the closest impact Flutter exposes, and say so in their documentation.
  • Key colors were hardcoded to black on white, leaving the keypad illegible in dark mode. Unset colors now follow the ambient ColorScheme.
  • The example app depended on a published version of the package instead of the local source, so it never exercised the code in this repository.

Changed #

  • onKeyPress is now optional — supply it, a controller, or both.
  • keyShape is now nullable so it can fall back to KeypadTheme. Passing a BoxShape works exactly as before.
  • A style passed to the widget is merged over the themed style rather than replacing it, so setting only a font size keeps the themed color.
  • Dropped the unused haptic_feedback dev dependency.

0.0.2 #

  • TODO: Describe initial release.
  • Updated package to version 0.0.2

  • Updated package to version 0.0.2

  • Updated package to version 0.0.2+1

  • Updated package to version 0.0.2+2

  • Updated package to version 0.0.2+3

  • Updated package to version 0.0.2+4

  • Updated package to version 1.0.2+5

  • Updated package to version 1.0.3

4
likes
160
points
103
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A customizable on-screen numeric keypad for Flutter apps. Ideal for PIN entry, authentication screens, and custom input fields with haptic feedback support.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on onscreen_keypad