Skip to content

Commit b1c5cc0

Browse files
Kalle JohanssonKalle Johansson
Kalle Johansson
authored and
Kalle Johansson
committed
fix: prevent early dispose of CardSwiperController
1 parent 9161c93 commit b1c5cc0

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [7.0.1]
2+
3+
- Prevents `CardSwiperController` to be disposed by `CardSwiper`.
14

25
## [7.0.0]
36

lib/src/widget/card_swiper_state.dart

-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ class _CardSwiperState<T extends Widget> extends State<CardSwiper>
6565
@override
6666
void dispose() {
6767
_animationController.dispose();
68-
widget.controller?.dispose();
6968
super.dispose();
7069
}
7170

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: flutter_card_swiper
22
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.
33
homepage: https://github.com/ricardodalarme/flutter_card_swiper
44
issue_tracker: https://github.com/ricardodalarme/flutter_card_swiper/issues
5-
version: 7.0.0
5+
version: 7.0.1
66

77
environment:
88
sdk: ">=3.0.0 <4.0.0"

0 commit comments

Comments
 (0)