| Index: sky/sdk/example/widgets/card_collection.dart
|
| diff --git a/sky/sdk/example/widgets/card_collection.dart b/sky/sdk/example/widgets/card_collection.dart
|
| index 94c0443830d764b241ba9d10a522da14d87df1d4..aaca1d47ce12d3745982856b3f3363c34d190a39 100644
|
| --- a/sky/sdk/example/widgets/card_collection.dart
|
| +++ b/sky/sdk/example/widgets/card_collection.dart
|
| @@ -29,8 +29,8 @@ class CardCollectionApp extends App {
|
| CardCollectionApp() {
|
| _activeCardAnimation = new AnimationPerformance()
|
| ..variable = new AnimatedType(0.0, 1.0)
|
| - ..duration = new Duration(milliseconds: _kCardDismissFadeoutMS);
|
| - _activeCardAnimation.timeline.onValueChanged.listen(_handleAnimationProgressChanged);
|
| + ..duration = new Duration(milliseconds: _kCardDismissFadeoutMS)
|
| + ..addListener(_handleAnimationProgressChanged);
|
| }
|
|
|
| int _activeCardIndex = -1;
|
| @@ -46,7 +46,7 @@ class CardCollectionApp extends App {
|
| return _activeCardAnimation.progress * _activeCardWidth * _kDismissCardThreshold;
|
| }
|
|
|
| - void _handleAnimationProgressChanged(_) {
|
| + void _handleAnimationProgressChanged() {
|
| setState(() {
|
| if (_activeCardAnimation.isCompleted && !_activeCardDragUnderway)
|
| _dismissedCardIndices.add(_activeCardIndex);
|
|
|