onscreen_keypad 1.1.0
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, withappend,backspace,clear,value,lengthandisComplete.onCompleted, called with the full entry once the controller reaches itsmaxLength. It fires only on the press that completes the entry.PinIndicator, a row of dots that follows aKeypadController.shuffleandReshuffleMode(once,everyKey,everyEntry,manual) to randomize digit positions for PIN entry. Action slots keep their positions. UsesRandom.secure(); passrandom:to seed it in tests.KeypadThemeandKeypadThemeDatato set keypad styling once for a subtree.keyIconColorfor icon-based keys.package:onscreen_keypad/onscreen_keypad.dartas the canonical import, which is what the README documented. The previous entry points still re-export it.
Fixed #
hapticFeedbackTypewas declared but never passed to the keys, so every press triggered a light impact regardless of the value given.notificationSuccess,notificationWarningandnotificationErrorsilently 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 #
onKeyPressis now optional — supply it, acontroller, or both.keyShapeis now nullable so it can fall back toKeypadTheme. Passing aBoxShapeworks exactly as before.- A
stylepassed 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_feedbackdev 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