| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 import 'animated_component.dart'; | 5 import 'animated_component.dart'; |
| 6 import '../animation/animated_value.dart'; | 6 import '../animation/animated_value.dart'; |
| 7 import '../animation/curves.dart'; | 7 import '../animation/curves.dart'; |
| 8 import '../fn.dart'; | 8 import '../fn.dart'; |
| 9 import '../theme/colors.dart'; | 9 import '../theme/colors.dart'; |
| 10 import '../theme/shadows.dart'; | |
| 11 import 'dart:async'; | |
| 12 import 'dart:math' as math; | 10 import 'dart:math' as math; |
| 13 import 'dart:sky' as sky; | 11 import 'dart:sky' as sky; |
| 14 import 'material.dart'; | 12 import 'material.dart'; |
| 15 | 13 |
| 16 const double _kWidth = 304.0; | 14 const double _kWidth = 304.0; |
| 17 const double _kMinFlingVelocity = 0.4; | 15 const double _kMinFlingVelocity = 0.4; |
| 18 const double _kBaseSettleDurationMS = 246.0; | 16 const double _kBaseSettleDurationMS = 246.0; |
| 19 const double _kMaxSettleDurationMS = 600.0; | 17 const double _kMaxSettleDurationMS = 600.0; |
| 20 const Curve _kAnimationCurve = parabolicRise; | 18 const Curve _kAnimationCurve = parabolicRise; |
| 21 | 19 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 inlineStyle: inlineStyle, | 145 inlineStyle: inlineStyle, |
| 148 children: [ mask, content ] | 146 children: [ mask, content ] |
| 149 ), | 147 ), |
| 150 onPointerDown: controller.handlePointerDown, | 148 onPointerDown: controller.handlePointerDown, |
| 151 onPointerMove: controller.handlePointerMove, | 149 onPointerMove: controller.handlePointerMove, |
| 152 onPointerUp: controller.handlePointerUp, | 150 onPointerUp: controller.handlePointerUp, |
| 153 onPointerCancel: controller.handlePointerCancel | 151 onPointerCancel: controller.handlePointerCancel |
| 154 ); | 152 ); |
| 155 } | 153 } |
| 156 } | 154 } |
| OLD | NEW |