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 |
index 707d5ad172ddab9d5fbbcaa6bee55bd3fe1c8e3e..8ab395ae9d594dada86d09b80570575e52c69ada 100644 |
--- a/sky/framework/components/popup_menu_item.dart |
+++ b/sky/framework/components/popup_menu_item.dart |
@@ -7,23 +7,22 @@ import '../animation/animated_value.dart'; |
import '../fn.dart'; |
import 'ink_well.dart'; |
-class PopupMenuItem extends AnimatedComponent { |
+class PopupMenuItem extends Component { |
static final Style _style = new Style(''' |
min-width: 112px; |
padding: 16px;'''); |
List<Node> children; |
- double _opacity; |
+ double opacity; |
- PopupMenuItem({ Object key, this.children, AnimatedValue opacity}) : super(key: key) { |
- animateField(opacity, #_opacity); |
- } |
+ PopupMenuItem({ Object key, this.children, this.opacity}) : super(key: key); |
Node build() { |
- return new InkWell( |
- style: _style, |
- inlineStyle: _opacity == null ? null : 'opacity: ${_opacity}', |
- children: children |
- ); |
+ return new StyleNode( |
+ new InkWell( |
+ inlineStyle: opacity == null ? null : 'opacity: ${opacity}', |
+ children: children |
+ ), |
+ _style); |
} |
} |