| 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 '../animation/animated_value.dart'; | 5 import '../animation/animated_value.dart'; |
| 6 import '../fn2.dart'; | 6 import '../fn2.dart'; |
| 7 import '../theme2/colors.dart'; | 7 import '../theme2/colors.dart'; |
| 8 import '../theme2/shadows.dart'; | 8 import '../theme2/shadows.dart'; |
| 9 import 'animated_component.dart'; | 9 import 'animated_component.dart'; |
| 10 import 'dart:async'; | 10 import 'dart:async'; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // }); | 92 // }); |
| 93 // } | 93 // } |
| 94 | 94 |
| 95 UINode build() { | 95 UINode build() { |
| 96 int i = 0; | 96 int i = 0; |
| 97 List<UINode> children = new List.from(items.map((List<UINode> item) { | 97 List<UINode> children = new List.from(items.map((List<UINode> item) { |
| 98 double opacity = _opacityFor(i); | 98 double opacity = _opacityFor(i); |
| 99 return new PopupMenuItem(key: i++, children: item, opacity: opacity); | 99 return new PopupMenuItem(key: i++, children: item, opacity: opacity); |
| 100 })); | 100 })); |
| 101 | 101 |
| 102 // border-radius: 2px | |
| 103 // inlineStyle: _inlineStyle(), | 102 // inlineStyle: _inlineStyle(), |
| 104 return new ShrinkWrapWidth( | 103 return new ShrinkWrapWidth( |
| 105 child: new Container( | 104 child: new Container( |
| 106 padding: const EdgeDims.all(8.0), | 105 padding: const EdgeDims.all(8.0), |
| 107 decoration: new BoxDecoration( | 106 decoration: new BoxDecoration( |
| 108 backgroundColor: Grey[50], | 107 backgroundColor: Grey[50], |
| 108 borderRadius: 2.0, |
| 109 boxShadow: Shadow[level]), | 109 boxShadow: Shadow[level]), |
| 110 child: new BlockContainer(children: children) | 110 child: new BlockContainer(children: children) |
| 111 ) | 111 ) |
| 112 ); | 112 ); |
| 113 } | 113 } |
| 114 } | 114 } |
| OLD | NEW |