flutter_swipe_deck 1.2.1
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 farPagedSwipeDeckandSwipeDeckPaginatorwill 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 callrefresh().SwipeDeckPage<T>— page result withhasMoreand an optionalnextCursor, 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
maxBufferedItemsandkeepBehind: swiped cards are dropped from the front while undo keeps working. loadingBuilderanderrorBuilderfor the states between pages.SwipeDeckController.trimLeadingfor decks whose list is trimmed at the front.- Fixed: appending to
itemsno 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.SwipeDeckController—swipeLeft,swipeRight,swipeUp,swipeDown,swipe,undoandmoveTo.- Four-way swiping through
allowedDirections, defaulting to horizontal. overlayBuilderfor LIKE/NOPE style badges that follow the drag progress.- Tunable stack:
visibleCount,backCardScale,backCardOffset,maxRotation,threshold,velocityThreshold,durationandcurve. loop,swipeEnabled,hapticFeedback,initialIndex,emptyBuilder,onSwipe,onUndo,onIndexChangedandonEnd.- No third-party dependencies.