card_stack_swiper 1.1.1
card_stack_swiper: ^1.1.1 copied to clipboard
A highly customizable and smooth card stack swiper widget for Flutter, supporting interactive gestures and programmatic control.
1.1.1 #
Added #
emptyCardBuilderparameter to display custom widget when all cards are swiped andisLoopis falseCardStackSwiperEmptyCardBuildertypedef for building empty state widget- Smooth animated transition between card stack and empty state using
AnimatedSwitcher - Comprehensive test suite with 45 tests covering all plugin functionality
- Unit tests for
Undoableutility class - Unit tests for
AllowedSwipeDirectionconfiguration class - Unit and widget tests for
CardStackSwiperController - Widget tests for main
CardStackSwiperfunctionality - Test helpers for card building, finders, gestures, and app pumping
- Tests for new
emptyCardBuilderfunctionality
Changed #
- Updated
_allCardsSwipedlogic to properly handlenullindex state - Modified
didUpdateWidgetlogic to preserve index state whenemptyCardBuilderis used - Improved state management for end-of-stack scenarios
- Refactored
CardStackSwiperContentwidget to encapsulateAnimatedSwitcherlogic - Enhanced test coverage from basic functionality to comprehensive API testing
- Optimized test structure to work with CardStackSwiper's multi-card display architecture
Fixed #
- Fixed empty state not displaying when all cards are swiped with
isLoopdisabled - Resolved index reset issue that prevented empty card builder from showing
- Fixed controller widget tests to use
pumpAndSettle()for proper animation handling - Corrected test assertions to handle CardStackSwiper's multiple card display structure
- Resolved lint warnings including unused variables and print statements
- Fixed test helper imports and gesture implementations
1.0.3 #
Changed #
- Updated version to 1.0.3 in
pubspec.yaml. - Improved slider settings update logic in
card_stack_swiper_slider_state.dartto properly handle widget property changes.
1.0.2 #
Changed #
- Increased MinimumOSVersion from 12.0 to 13.0 in
AppFrameworkInfo.plist. - Updated
IPHONEOS_DEPLOYMENT_TARGETfrom 12.0 to 13.0 inproject.pbxproj. - Bumped version to 1.0.2 in
pubspec.yaml.
1.0.1 #
Changed #
- Refactored code for improved readability and maintainability
- Update version to 1.0.1
1.0.0+4 #
Changed #
- Refactor drag update logic in card_animation.dart for improved readability and maintainability
- Update version to 1.0.0+4 and document changes in CHANGELOG.md
1.0.0+1 #
Changed #
- Refactored internal code for improved readability and consistency.
- Optimized gesture handling logic in
_onPanEndand_onPanUpdate
1.0.0 #
Added #
- Initial release of the
card_stack_swiperpackage - Swiping in all four directions (left, right, top, bottom) with
AllowedSwipeDirection - Programmatic control via
CardStackSwiperController(swipe,undo,moveTo) - A comprehensive suite of callbacks:
onSwipe,onUndo,onEnd,onPressed - Real-time swipe direction tracking with
onSwipeDirectionChange isDisabledandonTapDisabledproperties to control user interactioninitialIndexproperty to start the stack at a specific cardisLoopproperty for infinite scrollingcardBuildernow provideshorizontalOffsetPercentageandverticalOffsetPercentagefor creating interactive cards- Performance optimization using
AnimatedBuilderto prevent unnecessary widget rebuilds - Full Dartdoc documentation for the public API
