swipify 0.0.4
swipify: ^0.0.4 copied to clipboard
A Flutter widget for swipeable card stacks with smooth animations. Perfect for Tinder-like interfaces and interactive card UIs.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.0.4 - 2025-12-13 #
Changed #
- Updated package metadata and documentation
- Minor refinements and optimizations
0.0.3 - 2025-12-13 #
Fixed #
- Fixed card centering calculation to respect container constraints
- Cards now center correctly within their container, accounting for any external padding or margins
- Changed calculation from using card width to using container
maxWidthfromBoxConstraints
0.0.2 - 2025-12-13 #
0.0.1 - 2025-12-13 #
Added #
- Initial release of Swipify
SwipifyWidget<T>- Main widget for creating swipeable card stacksSwipifyStyle- Customization options for card appearance- Generic type support for any data type
- Smooth animations and transitions
- Depth effect with scaling and overlays
- Configurable number of visible cards
- Drag and drop interaction
- Continuous card cycling
- Material Design 3 support
onCardChangedcallback to notify when a card is swiped- Provides the index of the new top card (modulo collection size)
- Provides the item data of the new top card
- Called after card change animation completes
Features #
- Swipeable card stack with smooth drag-and-drop
- Customizable colors, shadows, and spacing
- Type-safe generic implementation
- Automatic card repositioning with animations
- Semi-transparent overlay on background cards
- Progressive scaling effect for depth perception
- FittedBox scaling for proportional content resizing
- Shadow margin for proper elevation display
Documentation #
- Comprehensive README with examples
- API reference documentation
- Code comments and dartdoc
- Example application demonstrating usage
- Complete test suite (12 tests)