Skip to content

Commit

Permalink
Merge pull request #38 from miDeb/fix_dismiss_animation
Browse files Browse the repository at this point in the history
fix the end extend of actions in dismiss animation
  • Loading branch information
letsar authored Oct 15, 2018
2 parents 5845a89 + dbc6597 commit ba45d60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/widgets/slidable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ class SlideToDismissDrawerDelegate extends SlideToDismissDelegate {
final extentAnimations = Iterable.generate(count).map((index) {
return new Tween(
begin: actionExtent,
end: totalExtent,
end: totalExtent -
(actionExtent * (ctx.state.actionCount - index - 1)),
).animate(
new CurvedAnimation(
parent: ctx.state.overallMoveAnimation,
Expand Down

0 comments on commit ba45d60

Please sign in to comment.