fix: prevent early dispose of CardSwiperController (#38)

Co-authored-by: Kalle Johansson <kalle.johansson.ext@Knowunity-0005.local>
This commit is contained in:
Kalle Johansson 2024-05-06 14:34:37 +02:00 committed by GitHub
parent 9161c93034
commit 3b0796ca48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,6 @@
## [7.0.1]
- Prevents `CardSwiperController` to be disposed by `CardSwiper`.
## [7.0.0] ## [7.0.0]

View File

@ -65,7 +65,6 @@ class _CardSwiperState<T extends Widget> extends State<CardSwiper>
@override @override
void dispose() { void dispose() {
_animationController.dispose(); _animationController.dispose();
widget.controller?.dispose();
super.dispose(); super.dispose();
} }

View File

@ -2,7 +2,7 @@ name: flutter_card_swiper
description: This is a Tinder-like card swiper package. It allows you to swipe left, right, up, and down and define your own business logic for each direction. description: This is a Tinder-like card swiper package. It allows you to swipe left, right, up, and down and define your own business logic for each direction.
homepage: https://github.com/ricardodalarme/flutter_card_swiper homepage: https://github.com/ricardodalarme/flutter_card_swiper
issue_tracker: https://github.com/ricardodalarme/flutter_card_swiper/issues issue_tracker: https://github.com/ricardodalarme/flutter_card_swiper/issues
version: 7.0.0 version: 7.0.1
environment: environment:
sdk: ">=3.0.0 <4.0.0" sdk: ">=3.0.0 <4.0.0"