| Index: sky/sdk/lib/widgets/dismissable.dart
|
| diff --git a/sky/sdk/lib/widgets/dismissable.dart b/sky/sdk/lib/widgets/dismissable.dart
|
| index 829b7e3e978dd62a733a559efaba94fd29c00d6f..0c4363e335435b760ae799657f68a68a629a70bb 100644
|
| --- a/sky/sdk/lib/widgets/dismissable.dart
|
| +++ b/sky/sdk/lib/widgets/dismissable.dart
|
| @@ -127,12 +127,9 @@ class Dismissable extends AnimatedComponent {
|
|
|
| if (_isHorizontalFlingGesture(event)) {
|
| _dragUnderway = false;
|
| - double distance = 1.0 - _performance.progress;
|
| - if (distance > 0.0) {
|
| - double duration = _kCardDismissFadeout.inSeconds * distance / event.velocityX.abs();
|
| - _dragX = event.velocityX.sign;
|
| - _performance.timeline.animateTo(1.0, duration: duration);
|
| - }
|
| + _dragX = event.velocityX.sign;
|
| + _position.end = _activeCardDragEndPoint;
|
| + _performance.fling(velocity: event.velocityX.abs() / _width);
|
| }
|
| }
|
|
|
|
|