stepper_counter_swipe 2.0.1
stepper_counter_swipe: ^2.0.1 copied to clipboard
A flutter stepper widget for make the user experience much better. There is a hit zone for fast count
Changelog #
2.0.1 - 2026-02-28 #
Changed
- Added
.pubignoreto exclude large demo GIF files from the published package (30 MB → 53 KB)
2.0.0 - 2026-02-28 #
Breaking — Migration Required
-
stepperValueparameter removed. The widget now manages its own counter state internally, starting frominitialValue. If you were passingstepperValueseparately, simply remove it —initialValueis sufficient to set the starting value. The current value is still reported on every change via theonChangedcallback. -
Dart SDK constraint updated to
>=3.0.0 <4.0.0. Dart 2.x is no longer supported. Make sure your project targets Dart 3 or higher.
Added
- New
stepparameter to control the increment/decrement amount per swipe (default:1). For example,step: 10makes the counter increase/decrease by 10 each time. The value is automatically clamped tominValue/maxValueboundaries even when using large step values.
Changed
-
Widget fields are now fully immutable (
final), correctly following Flutter'sStatefulWidgetcontract. Previously,stepperValueandminValuewere mutable widget fields, which is against Flutter's design principles. Both are now properly managed inside the widget'sState. -
Replaced deprecated
Colors.withOpacity()withColors.withAlpha()to stay compatible with current Flutter versions.
Fixed
flutter analyzenow reports zero issues and zero warnings across the entire package.
1.0.2 - 2022-03-05 #
- Migrated to null-safety (Dart >= 2.12)
1.0.0 - 2020-11-23 #
- Stable version released
0.0.6 - 2020-07-08 #
- Fast count hit zone feature added