Skip to content

Commit

Permalink
Fix: cannot access context in onSwipe when no cards left then "dest…
Browse files Browse the repository at this point in the history
…roy" the widget tree (#29)
  • Loading branch information
husainazkas authored Jan 9, 2024
1 parent 1f23f08 commit 6df02e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/card_swiper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ class _CardSwiperState<T extends Widget> extends State<CardSwiper>

@override
void dispose() {
super.dispose();
_animationController.dispose();
widget.controller?.removeListener(_controllerListener);
super.dispose();
}

@override
Expand Down

0 comments on commit 6df02e3

Please sign in to comment.