Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Unified Diff: sky/framework/components/menu_item.dart

Issue 983903003: Re-work MaterialComponent (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/framework/components/material.dart ('k') | sky/framework/components/radio.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/components/menu_item.dart
diff --git a/sky/framework/components/menu_item.dart b/sky/framework/components/menu_item.dart
index dc1b8dfe165e2408944aa1852648606514fe03dc..4db0d001656a922c123985012f13ccbf6cc7dd44 100644
--- a/sky/framework/components/menu_item.dart
+++ b/sky/framework/components/menu_item.dart
@@ -5,6 +5,7 @@
import '../fn.dart';
import 'button_base.dart';
import 'icon.dart';
+import 'material.dart';
class MenuItem extends ButtonBase {
static final Style _style = new Style('''
@@ -41,10 +42,9 @@ class MenuItem extends ButtonBase {
MenuItem({ Object key, this.icon, this.children }) : super(key: key);
Node build() {
- return new Container(
+ return new Material (
style: highlight ? _highlightStyle : _style,
children: [
- super.build(),
new Icon(
style: _iconStyle,
size: 24,
« no previous file with comments | « sky/framework/components/material.dart ('k') | sky/framework/components/radio.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698