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

Unified Diff: sky/framework/components/icon.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/icon.dart
diff --git a/sky/framework/components/icon.dart b/sky/framework/components/icon.dart
index 4a37c7876511376df7a95da6be7dc1733e4ad71b..3b0f9d0fbeb71a6cb8eaea915efbc0ba697ea13d 100644
--- a/sky/framework/components/icon.dart
+++ b/sky/framework/components/icon.dart
@@ -7,13 +7,13 @@ import '../fn.dart';
const String kAssetBase = '/sky/assets/material-design-icons';
class Icon extends Component {
- Style style;
+ List<Style> styles;
int size;
String type;
Icon({
String key,
- this.style,
+ this.styles,
this.size,
this.type: ''
}) : super(key: key);
@@ -28,7 +28,7 @@ class Icon extends Component {
}
return new Image(
- style: style,
+ styles: styles,
width: size,
height: size,
src: '${kAssetBase}/${category}/2x_web/ic_${subtype}_${size}dp.png'

Powered by Google App Engine
This is Rietveld 408576698