flutter_swipe_deck 1.2.1 copy "flutter_swipe_deck: ^1.2.1" to clipboard
flutter_swipe_deck: ^1.2.1 copied to clipboard

A customizable Tinder-style swipeable card deck for Flutter, with built-in pagination, controller-driven swipes, undo, drag overlays and four-way directions.

1.2.0 #

  • Smoother button swipes: a card thrown from rest now flies out with its own curve and duration (programmaticCurve, programmaticDuration) instead of the drag-release curve, which read as a jump.
  • Cards are no longer rebuilt while dragging — only the transforms and the overlay follow the finger, and each card sits behind a RepaintBoundary.
  • Cards fly just far enough to clear the deck instead of a fixed long throw.
  • maxPage — an optional cap on how far PagedSwipeDeck and SwipeDeckPaginator will page.

1.1.0 #

  • PagedSwipeDeck<T> — swipe through a feed of any size, page by page.
  • SwipeDeckPaginator<T> — buffers pages, keeps one request in flight, stops when the source runs dry and holds the last error for a retry. Expose one yourself to call refresh().
  • SwipeDeckPage<T> — page result with hasMore and an optional nextCursor, so page-number and cursor APIs both work.
  • Prefetching through prefetchThreshold, so the deck tops itself up before the user reaches the last card.
  • Memory windowing through maxBufferedItems and keepBehind: swiped cards are dropped from the front while undo keeps working.
  • loadingBuilder and errorBuilder for the states between pages.
  • SwipeDeckController.trimLeading for decks whose list is trimmed at the front.
  • Fixed: appending to items no longer resets the deck's cursor or its undo history.
  • Fixed: a deck that was never dragged could assert while being disposed.

1.0.0 #

First release.

  • SwipeDeck<T> — a Tinder-style card stack with drag, fling and tap-free reuse for any item type.
  • SwipeDeckControllerswipeLeft, swipeRight, swipeUp, swipeDown, swipe, undo and moveTo.
  • Four-way swiping through allowedDirections, defaulting to horizontal.
  • overlayBuilder for LIKE/NOPE style badges that follow the drag progress.
  • Tunable stack: visibleCount, backCardScale, backCardOffset, maxRotation, threshold, velocityThreshold, duration and curve.
  • loop, swipeEnabled, hapticFeedback, initialIndex, emptyBuilder, onSwipe, onUndo, onIndexChanged and onEnd.
  • No third-party dependencies.
1
likes
155
points
126
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A customizable Tinder-style swipeable card deck for Flutter, with built-in pagination, controller-driven swipes, undo, drag overlays and four-way directions.

Repository (GitHub)
View/report issues

Topics

#cards #swipe #tinder #pagination #ui

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_swipe_deck