Skip to content

Commit

Permalink
fix: must dispose controller before calling super.dispose()
Browse files Browse the repository at this point in the history
  • Loading branch information
husainazkas committed Jan 8, 2024
1 parent 1f23f08 commit 79bfdd1
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 79bfdd1

Please sign in to comment.