add_to_cart_animated_button
Add to Cart Button with Animation and Custom Styling for Modern Shopping apps like experience.
What this package is like to depend on
Last release 1 months ago
15 Jul 2026
Too new to tell
only 2 release windows
Nearly every release is documented
notes for 5 of 5 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
5 releases · first in 2024
1 release in the last 12 months
see the full history below
Release timeline
5 releases · Dec 2024 to Jul 2026
2025
2026
Releases
latest 5-
1.0.015 Jul 2026Release notes
Open source →- Breaking:
onIncrementandonDecrementare nowFutureOr<void> Function()instead ofFunction(int). Callers must read the new value from their own state/controller instead of receiving it as a callback argument. Existing synchronous callbacks keep working unchanged. - Fix:
AddToCartnow enforcesmaxValue/minValueitself — the increment/decrement buttons no longer fire past those bounds (previously only the icon opacity dimmed; the tap still fired). - Behavior change: tapping a control at its bound now fires the new
onMaxValueReached/onMinValueReachedcallback instead of doing nothing — the realonIncrement/onDecrementstill never fires past the bound. - Added built-in async/loading support: if
onIncrement/onDecrementreturns aFuture, the widget awaits it, showsloadingIndicatorwhile pending, and blocks further taps until it resolves. - Added
AddToCart.controllerconstructor andAddToCartController(aValueNotifier<int>) for imperative/external control (e.g. resetting the count from a parent widget) as an alternative to the caller-managedvalueprop. - Added
AddToCartThemeDataas aThemeExtensionso colors/decorations/icons/text style can be set once viaThemeData.extensionsinstead of per-instance; explicit constructor params still take precedence. - Added accessibility:
Semanticslabels on all controls, configurable viaincrementSemanticLabel,decrementSemanticLabel,addSemanticLabel, andcounterSemanticLabelBuilder. - Added
enabledanderrorTextparams for disabled/read-only/error states. - Added
enableLongPressRepeat(+longPressRepeatInterval) to auto-repeat increment/decrement on long-press. - Fixed the increment/decrement slide animation to respect
Directionality(previously always slid left-to-right regardless of locale). - Added
debugFillPropertiesoverride onAddToCart(exposesvalue,minValue,maxValue,enabled, and whether acontrolleris attached, in Flutter Inspector/DevTools). - Updated example app's Android build tooling: Gradle 8.3 → 8.9, Android Gradle Plugin 8.1.0 → 8.7.0, Kotlin 1.8.22 → 2.1.0.
- Verified compatibility with Flutter 3.41.6 / Dart 3.11.4.
- Breaking:
-
0.0.429 Dec 2024 -
0.0.329 Dec 2024 -
0.0.229 Dec 2024 -
0.0.129 Dec 2024