| 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 '../fn.dart'; | 7 import '../fn.dart'; |
| 8 import '../theme/colors.dart'; | 8 import '../theme/colors.dart'; |
| 9 import '../theme/view-configuration.dart'; | 9 import '../theme/view-configuration.dart'; |
| 10 import 'dart:async'; | 10 import 'dart:async'; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 }); | 80 }); |
| 81 } | 81 } |
| 82 | 82 |
| 83 Node build() { | 83 Node build() { |
| 84 int i = 0; | 84 int i = 0; |
| 85 List<Node> children = new List.from(items.map((List<Node> item) { | 85 List<Node> children = new List.from(items.map((List<Node> item) { |
| 86 double opacity = _opacityFor(i); | 86 double opacity = _opacityFor(i); |
| 87 return new PopupMenuItem(key: i++, children: item, opacity: opacity); | 87 return new PopupMenuItem(key: i++, children: item, opacity: opacity); |
| 88 })); | 88 })); |
| 89 | 89 |
| 90 return new Material( | 90 return new StyleNode( |
| 91 style: _style, | 91 new Material( |
| 92 inlineStyle: _inlineStyle(), | 92 inlineStyle: _inlineStyle(), |
| 93 children: children, | 93 children: children, |
| 94 level: level); | 94 level: level), |
| 95 _style); |
| 95 } | 96 } |
| 96 } | 97 } |
| OLD | NEW |