| 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; |
| 6 import 'dart:sky' as sky; |
| 7 |
| 8 import 'package:vector_math/vector_math.dart'; |
| 9 |
| 5 import '../animation/animated_value.dart'; | 10 import '../animation/animated_value.dart'; |
| 6 import '../animation/curves.dart'; | 11 import '../animation/curves.dart'; |
| 7 import '../fn2.dart'; | |
| 8 import '../theme2/colors.dart'; | 12 import '../theme2/colors.dart'; |
| 9 import '../theme2/shadows.dart'; | 13 import '../theme2/shadows.dart'; |
| 10 import 'animated_component.dart'; | 14 import 'animated_component.dart'; |
| 11 import 'dart:math' as math; | 15 import 'wrappers.dart'; |
| 12 import 'dart:sky' as sky; | |
| 13 import 'material.dart'; | |
| 14 import 'package:vector_math/vector_math.dart'; | |
| 15 | 16 |
| 16 // TODO(eseidel): Draw width should vary based on device size: | 17 // TODO(eseidel): Draw width should vary based on device size: |
| 17 // http://www.google.com/design/spec/layout/structure.html#structure-side-nav | 18 // http://www.google.com/design/spec/layout/structure.html#structure-side-nav |
| 18 | 19 |
| 19 // Mobile: | 20 // Mobile: |
| 20 // Width = Screen width − 56 dp | 21 // Width = Screen width − 56 dp |
| 21 // Maximum width: 320dp | 22 // Maximum width: 320dp |
| 22 // Maximum width applies only when using a left nav. When using a right nav, | 23 // Maximum width applies only when using a left nav. When using a right nav, |
| 23 // the panel can cover the full width of the screen. | 24 // the panel can cover the full width of the screen. |
| 24 | 25 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 return new EventListenerNode( | 157 return new EventListenerNode( |
| 157 new Stack([ mask, content ]), | 158 new Stack([ mask, content ]), |
| 158 onPointerDown: controller.handlePointerDown, | 159 onPointerDown: controller.handlePointerDown, |
| 159 onPointerMove: controller.handlePointerMove, | 160 onPointerMove: controller.handlePointerMove, |
| 160 onPointerUp: controller.handlePointerUp, | 161 onPointerUp: controller.handlePointerUp, |
| 161 onPointerCancel: controller.handlePointerCancel | 162 onPointerCancel: controller.handlePointerCancel |
| 162 ); | 163 ); |
| 163 } | 164 } |
| 164 | 165 |
| 165 } | 166 } |
| OLD | NEW |