Search packages, repositories and app categories

Package detailsv1.0.2

swipeable_card

Add swipeable card-like widgets for games or interactive onboarding screens

30-day downloads
41
Likes
57
Pub points
35

Install package

flutter pub add swipeable_card

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The swipeable_card package enables developers to create interactive, card-like widgets that can be swiped left or right, ideal for implementing Tinder-style interfaces. It's particularly useful for games, onboarding flows, or any UI requiring gesture-based navigation between cards. The package provides smooth animations and intuitive swipe gestures with minimal setup. It supports custom card content and swipe actions, making it flexible for various use cases. Built with Flutter, it integrates seamlessly into existing projects.

Use cases

  • Interactive onboarding screens
  • Tinder-style matching interfaces
  • Game card mechanics
  • Swipe-based navigation
  • User preference collection
  • Dynamic content exploration

Key features

  • Gesture-driven swipe interactions
  • Smooth animation transitions
  • Customizable card content
  • Simple integration with Flutter
  • Supports left/right swipe actions
  • Lightweight and performant

Suitable for

  • Developers building interactive UIs
  • Onboarding screen creators
  • Game developers
  • Mobile app designers
  • Flutter beginners seeking simple gestures
  • Apps needing swipe-based user input

Considerations

  • Limited to horizontal swiping only
  • No built-in support for vertical swipes
  • Requires manual handling of swipe outcomes
  • Not optimized for large card lists
  • May need additional styling for complex layouts
  • Depends on external GitHub repository for updates

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Swipeable Card (v1.x.x)

Add swipeable card-like widgets for games or interactive onboarding screens

Pub PRs Welcome lic BMAC

Contents

🎮 Examples

Demo
SwipeableWidget (meant for high performance devices, like iPhones)
Demo 1
SwipeableWidgetSlide (meant for lower performance devices, like older Android devices)
  • Demo of SwipeableWidgetSlide to be added

Check the repository if you're unable to see the demo.

App examples

Swipeable Widget is used in the following apps:

  • Shots
  • Create a PR to add your own!

📒 Documentation

Installation

Add swipeable_card to your pubspec.yaml:

dependencies:
  flutter:
    sdk: flutter

  # added below
  swipeable_card: <latest version>
Adding to your app

The swipeable widget has to be placed in a Column (or Row), for example:

Column(
  children: <Widget>[
    SwipeableWidget(
      // parameters ...
      child: someChildWidget(),
    ),
  ],
)

In the above example, replace someChildWidget() with the widget that can be swiped (for example, a playing card-like widget).

Warning: while SwipeableWidget is fast on iPhones, it can be quite slow for older Android devices. I am currently working on SwipeableWidgetSlide, an alternative which can be used for older Android devices.

Check out https://swipeable-card.now.sh/ for the full documentation (still a work in progress).

😐 Issues and limitations

If you use the a swipeableWidgetController to automatically swipe the cards (without the user panning), you can only start swiping the next card away when the previous one is fully swiped away. To see a demo, run the example, and continuously tap the "Left" button at the bottom of the screen.

Apart from that, all the other problems from v0.0.x seem to be dealth with.

License

BSD 2-clause

📝 Other information

Project start date: 1 May, 2020.

Categories

Source repository

Projects using this package

No data available yet.