Skip to content

Commit ba45d60

Browse files
authored
Merge pull request #38 from miDeb/fix_dismiss_animation
fix the end extend of actions in dismiss animation
2 parents 5845a89 + dbc6597 commit ba45d60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/src/widgets/slidable.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ class SlideToDismissDrawerDelegate extends SlideToDismissDelegate {
173173
final extentAnimations = Iterable.generate(count).map((index) {
174174
return new Tween(
175175
begin: actionExtent,
176-
end: totalExtent,
176+
end: totalExtent -
177+
(actionExtent * (ctx.state.actionCount - index - 1)),
177178
).animate(
178179
new CurvedAnimation(
179180
parent: ctx.state.overallMoveAnimation,

0 commit comments

Comments
 (0)