| 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 'dart:math' as math; | 5 import 'dart:math' as math; |
| 6 import 'dart:sky' as sky; | 6 import 'dart:sky' as sky; |
| 7 | 7 |
| 8 import 'package:vector_math/vector_math.dart'; | 8 import 'package:vector_math/vector_math.dart'; |
| 9 | 9 |
| 10 import '../animation/animated_value.dart'; | 10 import '../animation/animated_value.dart'; |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 var mask = new EventListenerNode( | 142 var mask = new EventListenerNode( |
| 143 new Container(decoration: new BoxDecoration(backgroundColor: maskColor)), | 143 new Container(decoration: new BoxDecoration(backgroundColor: maskColor)), |
| 144 onGestureTap: controller.handleMaskTap, | 144 onGestureTap: controller.handleMaskTap, |
| 145 onGestureFlingStart: controller.handleFlingStart | 145 onGestureFlingStart: controller.handleFlingStart |
| 146 ); | 146 ); |
| 147 | 147 |
| 148 Container content = new Container( | 148 Container content = new Container( |
| 149 decoration: new BoxDecoration( | 149 decoration: new BoxDecoration( |
| 150 backgroundColor: Grey[50], | 150 backgroundColor: Grey[50], |
| 151 boxShadow: Shadow[level]), | 151 boxShadow: shadows[level]), |
| 152 width: _kWidth, | 152 width: _kWidth, |
| 153 transform: transform, | 153 transform: transform, |
| 154 child: new Block(children) | 154 child: new Block(children) |
| 155 ); | 155 ); |
| 156 | 156 |
| 157 return new EventListenerNode( | 157 return new EventListenerNode( |
| 158 new Stack([ mask, content ]), | 158 new Stack([ mask, content ]), |
| 159 onPointerDown: controller.handlePointerDown, | 159 onPointerDown: controller.handlePointerDown, |
| 160 onPointerMove: controller.handlePointerMove, | 160 onPointerMove: controller.handlePointerMove, |
| 161 onPointerUp: controller.handlePointerUp, | 161 onPointerUp: controller.handlePointerUp, |
| 162 onPointerCancel: controller.handlePointerCancel | 162 onPointerCancel: controller.handlePointerCancel |
| 163 ); | 163 ); |
| 164 } | 164 } |
| 165 | 165 |
| 166 } | 166 } |
| OLD | NEW |