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 '../fn2.dart'; |
9 import '../theme/colors.dart'; | 9 import '../theme/colors.dart'; |
10 import 'dart:math' as math; | 10 import 'dart:math' as math; |
11 import 'dart:sky' as sky; | 11 import 'dart:sky' as sky; |
12 import 'material.dart'; | 12 import 'material.dart'; |
13 | 13 |
14 const double _kWidth = 304.0; | 14 const double _kWidth = 304.0; |
15 const double _kMinFlingVelocity = 0.4; | 15 const double _kMinFlingVelocity = 0.4; |
16 const double _kBaseSettleDurationMS = 246.0; | 16 const double _kBaseSettleDurationMS = 246.0; |
17 const double _kMaxSettleDurationMS = 600.0; | 17 const double _kMaxSettleDurationMS = 600.0; |
18 const Curve _kAnimationCurve = parabolicRise; | 18 const Curve _kAnimationCurve = parabolicRise; |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 style: _style, | 147 style: _style, |
148 children: [ mask, content ] | 148 children: [ mask, content ] |
149 ), | 149 ), |
150 onPointerDown: controller.handlePointerDown, | 150 onPointerDown: controller.handlePointerDown, |
151 onPointerMove: controller.handlePointerMove, | 151 onPointerMove: controller.handlePointerMove, |
152 onPointerUp: controller.handlePointerUp, | 152 onPointerUp: controller.handlePointerUp, |
153 onPointerCancel: controller.handlePointerCancel | 153 onPointerCancel: controller.handlePointerCancel |
154 ); | 154 ); |
155 } | 155 } |
156 } | 156 } |
OLD | NEW |