Skip to content
pubscout

flip_card_swiper

2.2.0, released 3 weeks ago by hashstudios.dev

Swipeable card stack widget with flip animations and optional haptics.

WASM-ready
$ flutter pub add flip_card_swiper
Source repository

What it does

Provides a stack of cards that can be flipped and swiped with smooth physics‑based animations. Supports haptic feedback, keyboard accessibility, and preserves each card's state during flips.

AI-written summary of version 2.2.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need an interactive card deck with flip and swipe gestures
  • You want built‑in haptic feedback and accessibility support
  • You prefer a single‑purpose widget without extra dependencies

Skip it when

  • You require non‑Flutter native implementations
  • You need complex data fetching or state‑management logic inside the widget

Strengths

  • Smooth, customizable flip animations
  • Haptic feedback and accessibility built in
  • State of each card is preserved across flips
  • No additional dependencies

Weaknesses

  • Limited to card‑stack UI use cases
  • Only works on Flutter platforms

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:flutter/material.dart';
import 'package:flip_card_swiper/flip_card_swiper.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  final List<Map<String, dynamic>> cards = [
    {'color': Colors.blue, 'text': 'Card 1'},
    {'color': Colors.red, 'text': 'Card 2'},
    {'color': Colors.green, 'text': 'Card 3'},
  ];

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: FlipCardSwiper(
            cardData: cards,
            onCardChange: (i) {},
            cardBuilder: (context, index, visibleIndex) {
              final card = cards[index];
              return Container(
                key: ValueKey(index),
                width: 300,
                height: 200,
                decoration: BoxDecoration(
                  color: card['color'],
                  borderRadius: BorderRadius.circular(12),
                ),
                alignment: Alignment.center,
                child: Text(card['text'], style: const TextStyle(fontSize: 24, color: Colors.white)),
              );
            },
          ),
        ),
      ),
    );
  }
}

Alternatives

Packages that do the same job and could replace flip_card_swiper.