Index: sky/framework/components/popup_menu_item.dart |
diff --git a/sky/framework/components/popup_menu_item.dart b/sky/framework/components/popup_menu_item.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d404bf79e028cdbbcde545ba92b230040e493abd |
--- /dev/null |
+++ b/sky/framework/components/popup_menu_item.dart |
@@ -0,0 +1,23 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+import '../fn.dart'; |
+import 'material.dart'; |
+ |
+class PopupMenuItem extends Component { |
+ static final Style _style = new Style(''' |
+ min-width: 112px; |
+ padding: 16px;'''); |
+ |
+ List<Node> children; |
+ |
+ PopupMenuItem({ Object key, this.children }) : super(key: key); |
+ |
+ Node build() { |
+ return new Material( |
+ style: _style, |
+ children: children |
+ ); |
+ } |
+} |