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

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

Issue 1006053002: Allow Effen Styles to be extendable (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: cr 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 3b0f9d0fbeb71a6cb8eaea915efbc0ba697ea13d..4a37c7876511376df7a95da6be7dc1733e4ad71b 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 {
- List<Style> styles;
+ Style style;
int size;
String type;
Icon({
String key,
- this.styles,
+ this.style,
this.size,
this.type: ''
}) : super(key: key);
@@ -28,7 +28,7 @@ class Icon extends Component {
}
return new Image(
- styles: styles,
+ style: style,
width: size,
height: size,
src: '${kAssetBase}/${category}/2x_web/ic_${subtype}_${size}dp.png'

Powered by Google App Engine
This is Rietveld 408576698