OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 import '../fn.dart'; |
| 6 import '../theme/colors.dart'; |
| 7 import 'material.dart'; |
| 8 |
| 9 class PopupMenu extends Component { |
| 10 static final Style _style = new Style(''' |
| 11 border-radius: 2px; |
| 12 background-color: ${Grey[50]};''' |
| 13 ); |
| 14 |
| 15 List<Node> children; |
| 16 int level; |
| 17 |
| 18 PopupMenu({ Object key, this.children, this.level }) : super(key: key); |
| 19 |
| 20 Node build() { |
| 21 return new Material( |
| 22 style: _style, |
| 23 children: children, |
| 24 level: level |
| 25 ); |
| 26 } |
| 27 } |
OLD | NEW |