Package selection guidance compiled from public package information, community data, and project usage.
Swipe Cards is a Flutter package that enables developers to create Tinder-like swipeable card interfaces. It supports horizontal swiping with intuitive gestures, allowing users to swipe left or right on cards. The package is designed for simplicity and customization, making it ideal for apps requiring card-based navigation such as dating apps, product showcases, or content discovery features. It works across multiple platforms including Android, iOS, Web, macOS, Windows, and Linux.
Use cases
Dating app interfaces
Product or item discovery
Content browsing
User preference collection
Interactive onboarding screens
Key features
Tinder-style swipe gestures
Customizable card appearance
Cross-platform support
Smooth animation transitions
Gesture recognition
Easy integration with Flutter
Suitable for
Developers building swipe-based UIs
Apps needing user interaction via card swipes
Projects targeting multiple platforms
Considerations
Requires handling of state management
Limited built-in card data handling
May need additional styling for complex layouts
Not optimized for large card datasets without pagination
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
swipe_cards
A Flutter widget for Tinder like swipe cards. The card can be swiped right, left and up for different responses. Currently it supports the following responses:
Right swipe for like
Left swipe for nope
Up swipe for superlike
Install
To install the package, add the following dependency to your pubspec.yaml
An instance of MatchEngine that acts as controller for trigerring swipes manually.
itemBuilder
A function that returns the view inside a swipe card.
likeTag
Widget appears in like/right area during swipe.
nopeTag
Widget appears in nope/left area during swipe.
superLikeTag
Widget appears in super-like/up area during swipe.
onStackFinished
A function that is triggered as soon as all the cards have been swiped.
itemChanged
A function that is triggered when item in the stack changes (moves to next card).
leftSwipeAllowed
To enable/disable left swipe. (Default: true)
rightSwipeAllowed
To enable/disable right swipe. (Default: true)
upSwipeAllowed
To enable/disable up swipe. (Default: false)
fillSpace
Config weather to fill up the space or not. (Default: true)
MatchEngine
MatchEngine is the controller for the swipe cards. It takes swipeItems as an argument and is
used to trigger the swipes manually, for example on button press. The data type of swipeItems
is List<SwipeItem>.
SwipeItem contains the actual data that can be rendered in the swipe card. Actually it is a
wrapper over any dynamic object and just adds the functionality of like, nope and superlike to that
object.