card_deck_view 0.0.2 copy "card_deck_view: ^0.0.2" to clipboard
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.swipeBehavior with CardDeckSwipeBehavior.advanceBothDirections and leftNextRightPrevious.
  • Add independent CardDeckView.transition with CardDeckTransition.slideOut and cycleToBack.
  • 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 advanceBothDirections and slideOut; existing callers can opt into either feature independently.
  • Controller previous() retains its entry animation and emits only onChanged. Its index is now committed when the animation completes, so currentIndex remains 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.
1
likes
160
points
80
downloads

Documentation

API reference

Publisher

verified publisherleewei0923.com

Weekly Downloads

A smooth, physics-driven card deck with continuous stack interpolation, controllers, and cross-platform gestures.

Repository (GitHub)
View/report issues

Topics

#animation #cards #swipe

License

MIT (license)

Dependencies

flutter

More

Packages that depend on card_deck_view