Skip to content

Commit f0c9b74

Browse files
committed
Reduce the possibilities for the Flutter 11895 issue to happen
1 parent 8b02e34 commit f0c9b74

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

lib/src/widgets/slidable.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -829,11 +829,10 @@ class SlidableState extends State<Slidable>
829829

830830
@override
831831
bool get wantKeepAlive =>
832-
_overallMoveController?.isAnimating == true ||
833-
_overallMoveController?.isCompleted == true ||
834-
_actionsMoveController?.isAnimating == true ||
835-
_actionsMoveController?.isCompleted == true ||
836-
_resizeController?.isAnimating == true;
832+
!widget.closeOnScroll &&
833+
(_overallMoveController?.isAnimating == true ||
834+
_actionsMoveController?.isAnimating == true ||
835+
_resizeController?.isAnimating == true);
837836

838837
/// The current actions that have to be shown.
839838
SlideActionDelegate get actionDelegate =>

0 commit comments

Comments
 (0)