quantity_stepper 0.1.0
quantity_stepper: ^0.1.0 copied to clipboard
Accessible quantity stepper for Flutter: screen-reader adjust actions, 48dp targets, long-press repeat, keyboard support, a real FormField. No dependencies.
0.1.0 #
First release.
QuantityStepper: an integer control with minus and plus buttons,min,max,stepandlargeStep, in controlled (value) and uncontrolled (initialValue) modes.- Screen readers: one adjustable semantics node with label, value,
increasedValue,decreasedValueand increase/decrease actions; disabled state; optional debounced announcements throughSemanticsService.sendAnnouncement(announceChanges). - Long-press auto-repeat with acceleration (
autoRepeat,repeatDelay,repeatInterval). - Keyboard: ArrowUp/ArrowDown, PageUp/PageDown; opt-in mouse wheel.
editablemode: numeric text field, clamped on submit or blur.QuantityStepperFormField: aFormField<int>withvalidator,onSaved,autovalidateModeand reset.QuantityStepperTheme(ThemeExtension) and a per-widgetstyle;compactsize; horizontal and verticalaxis; right-to-left layout.- Every tap target is at least 48x48 logical pixels.
- Respects
MediaQuery.disableAnimations. - Tested with widget tests on Flutter 3.47.5. Not yet tested with TalkBack or VoiceOver on real devices.
