Index: sky/framework/components/menu_item.dart |
diff --git a/sky/framework/components/menu_item.dart b/sky/framework/components/menu_item.dart |
index 48a5d5fecdf28374f105692cc75f937785688795..05e80b9648898f97d6e8fcc14bb3da392cb01ff6 100644 |
--- a/sky/framework/components/menu_item.dart |
+++ b/sky/framework/components/menu_item.dart |
@@ -40,21 +40,23 @@ class MenuItem extends ButtonBase { |
MenuItem({ Object key, this.icon, this.children }) : super(key: key); |
Node buildContent() { |
- return new InkWell ( |
- style: highlight ? _highlightStyle : _style, |
- children: [ |
- new StyleNode( |
- new Icon( |
- size: 24, |
- type: "${icon}_grey600" |
+ return new StyleNode( |
+ new InkWell( |
+ children: [ |
+ new StyleNode( |
+ new Icon( |
+ size: 24, |
+ type: "${icon}_grey600" |
+ ), |
+ _iconStyle |
), |
- _iconStyle |
- ), |
- new Container( |
- style: _labelStyle, |
- children: children |
- ) |
- ] |
+ new Container( |
+ style: _labelStyle, |
+ children: children |
+ ) |
+ ] |
+ ), |
+ highlight ? _highlightStyle : _style |
); |
} |
} |