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

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

Issue 1003553002: Update Button to be made of Material (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
Index: sky/framework/components/menu_item.dart
diff --git a/sky/framework/components/menu_item.dart b/sky/framework/components/menu_item.dart
index 4db0d001656a922c123985012f13ccbf6cc7dd44..fbbde9d5961ae8fe01fb1ffb972afa5fb909b946 100644
--- a/sky/framework/components/menu_item.dart
+++ b/sky/framework/components/menu_item.dart
@@ -43,15 +43,15 @@ class MenuItem extends ButtonBase {
Node build() {
return new Material (
- style: highlight ? _highlightStyle : _style,
+ styles: [highlight ? _highlightStyle : _style],
children: [
new Icon(
- style: _iconStyle,
+ styles: [_iconStyle],
size: 24,
type: "${icon}_grey600"
),
new Container(
- style: _labelStyle,
+ styles: [_labelStyle],
children: children
)
]

Powered by Google App Engine
This is Rietveld 408576698