Skip to content

Commit

Permalink
Reduce the possibilities for the Flutter 11895 issue to happen
Browse files Browse the repository at this point in the history
  • Loading branch information
letsar committed Sep 8, 2018
1 parent 8b02e34 commit f0c9b74
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/src/widgets/slidable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -829,11 +829,10 @@ class SlidableState extends State<Slidable>

@override
bool get wantKeepAlive =>
_overallMoveController?.isAnimating == true ||
_overallMoveController?.isCompleted == true ||
_actionsMoveController?.isAnimating == true ||
_actionsMoveController?.isCompleted == true ||
_resizeController?.isAnimating == true;
!widget.closeOnScroll &&
(_overallMoveController?.isAnimating == true ||
_actionsMoveController?.isAnimating == true ||
_resizeController?.isAnimating == true);

/// The current actions that have to be shown.
SlideActionDelegate get actionDelegate =>
Expand Down

1 comment on commit f0c9b74

@ejabu
Copy link

@ejabu ejabu commented on f0c9b74 Sep 8, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also thought this is the part of code that must be tweaked!

thanks

Please sign in to comment.