card_deck_view 0.0.2
card_deck_view: ^0.0.2 copied to clipboard
A smooth, physics-driven card deck with continuous stack interpolation, controllers, and cross-platform gestures.
0.0.2 #
Added #
- Add
CardDeckView.swipeBehaviorwithCardDeckSwipeBehavior.advanceBothDirectionsandleftNextRightPrevious. - Add independent
CardDeckView.transitionwithCardDeckTransition.slideOutandcycleToBack. - Support left-next/right-previous navigation across gestures, wheel, keyboard and controller swipes without reordering source items.
- Add independent direction/transition selectors to Playground, API documentation and a 0.0.1 migration guide.
Fixed #
- Keep the held top card under the pointer in both drag directions; do not exchange the rear buffer before a swipe is committed.
- Send the current card around the right side when swiping back, and promote the previous item inside the stack without a rebound, side-entry animation or translucent content overlap.
- Commit navigation once after animation, preserve callback order, and cancel stale work on data/configuration changes, reset, jump or disposal.
- Preserve exhausted state when changing direction/transition settings; retain bounded mounting, stable card identity and reduced-motion behavior.
Compatibility #
- Defaults remain
advanceBothDirectionsandslideOut; existing callers can opt into either feature independently. - Controller
previous()retains its entry animation and emits onlyonChanged. Its index is now committed when the animation completes, socurrentIndexremains unchanged during entry. - Card content interaction is enabled only on the idle top card. Navigation commands during transitions continue to be ignored; jump and reset cancel immediately.
- Keep Flutter 3.44.0+ and Dart 3.12.2+ (<4.0.0) requirements, with no additional runtime dependencies.
0.0.1 #
- Replace the starter Calculator with the generic
CardDeckView<T>API. - Add continuous stack interpolation, horizontal drag, subtle rotation, spring return, swipe commitment and looping.
- Add controller navigation, keyed data reconciliation, style/physics configuration, callbacks and empty states.
- Support touch, mouse, trackpad, wheel, keyboard and reduced-motion accessibility.
- Bound mounted cards to the visible window plus one buffer.
- Add a six-platform example with twelve local transparent animal illustrations, handwritten captions, live controls and a 1,000-card demonstration.
- Retain a network image recipe with attribution and error/retry states.
- Add English and Chinese guides with recorded interaction GIF and responsive screenshots.
- Add widget coverage for animation, data, controller lifecycle, input and responsive example layouts.