| 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:sky' as sky; | 5 import 'dart:sky' as sky; |
| 6 | 6 |
| 7 import '../animation/animation_performance.dart'; | 7 import 'package:sky/animation/animation_performance.dart'; |
| 8 import '../animation/curves.dart'; | 8 import 'package:sky/animation/curves.dart'; |
| 9 import '../theme/shadows.dart'; | 9 import 'package:sky/theme/shadows.dart'; |
| 10 import 'animated_component.dart'; | 10 import 'package:sky/widgets/animated_component.dart'; |
| 11 import 'animation_builder.dart'; | 11 import 'package:sky/widgets/animation_builder.dart'; |
| 12 import 'basic.dart'; | 12 import 'package:sky/widgets/basic.dart'; |
| 13 import 'scrollable_viewport.dart'; | 13 import 'package:sky/widgets/scrollable_viewport.dart'; |
| 14 import 'theme.dart'; | 14 import 'package:sky/widgets/theme.dart'; |
| 15 | 15 |
| 16 // TODO(eseidel): Draw width should vary based on device size: | 16 // TODO(eseidel): Draw width should vary based on device size: |
| 17 // http://www.google.com/design/spec/layout/structure.html#structure-side-nav | 17 // http://www.google.com/design/spec/layout/structure.html#structure-side-nav |
| 18 | 18 |
| 19 // Mobile: | 19 // Mobile: |
| 20 // Width = Screen width − 56 dp | 20 // Width = Screen width − 56 dp |
| 21 // Maximum width: 320dp | 21 // Maximum width: 320dp |
| 22 // Maximum width applies only when using a left nav. When using a right nav, | 22 // 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. | 23 // the panel can cover the full width of the screen. |
| 24 | 24 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 child: new Stack([ mask, content ]), | 146 child: new Stack([ mask, content ]), |
| 147 onPointerDown: controller.handlePointerDown, | 147 onPointerDown: controller.handlePointerDown, |
| 148 onPointerMove: controller.handlePointerMove, | 148 onPointerMove: controller.handlePointerMove, |
| 149 onPointerUp: controller.handlePointerUp, | 149 onPointerUp: controller.handlePointerUp, |
| 150 onPointerCancel: controller.handlePointerCancel, | 150 onPointerCancel: controller.handlePointerCancel, |
| 151 onGestureFlingStart: controller.handleFlingStart | 151 onGestureFlingStart: controller.handleFlingStart |
| 152 ); | 152 ); |
| 153 } | 153 } |
| 154 | 154 |
| 155 } | 155 } |
| OLD | NEW |