Skip to content
pubscout

card_stack_widget

0.1.6, released 2 years ago by federicoviceconti.com

A vertical dismissible and customizable stack of cards for Flutter.

WASM-ready
$ flutter pub add card_stack_widget
Source repository

What it does

Provides a CardStackWidget and CardModel objects to display a stack of vertical cards that can be swiped, dismissed, tapped, and customized with scale factors, position factors, and opacity changes.

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

Use it when

  • You need a Tinder-style or swipeable card stack interface in your app.
  • You want customizable swipe orientations, scale factors, and dismiss durations for cards.

Skip it when

  • You require complex grid or table layouts instead of vertical stacked cards.
  • You are building non-Flutter web/desktop apps where card swiping gestures are irrelevant.

Strengths

  • Supports customizable swipe and dismiss orientations.
  • Includes configuration options for card scaling, position factor, and drag opacity.

Weaknesses

  • Limited to a vertical stack of cards.
  • Dependent solely on the provided CardModel structure.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
CardStackWidget(
  opacityChangeOnDrag: true,
  swipeOrientation: CardOrientation.both,
  cardDismissOrientation: CardOrientation.both,
  positionFactor: 3,
  scaleFactor: 1.5,
  alignment: Alignment.center,
  reverseOrder: true,
  animateCardScale: true,
  cardList: mockList,
)

Alternatives

Packages that do the same job and could replace card_stack_widget.