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

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

Issue 1007893005: Clean up stock_app.dart (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
« no previous file with comments | « sky/framework/components/drawer.dart ('k') | sky/framework/components/icon_button.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/components/icon.dart
diff --git a/sky/framework/components/icon.dart b/sky/framework/components/icon.dart
index 293b805c69cd01842cd0cba200f68362ff7f1e47..cae1025c9e1b14da3a6dbc1ce13d4a85a718f01d 100644
--- a/sky/framework/components/icon.dart
+++ b/sky/framework/components/icon.dart
@@ -8,13 +8,11 @@ import '../fn.dart';
const String kAssetBase = '/packages/sky/assets/material-design-icons';
class Icon extends Component {
- Style style;
int size;
String type;
Icon({
String key,
- this.style,
this.size,
this.type: ''
}) : super(key: key);
@@ -28,11 +26,7 @@ class Icon extends Component {
subtype = parts[1];
}
- return new Image(
- style: style,
- width: size,
- height: size,
- src: '${kAssetBase}/${category}/2x_web/ic_${subtype}_${size}dp.png'
- );
+ return new Image(width: size, height: size,
+ src: '${kAssetBase}/${category}/2x_web/ic_${subtype}_${size}dp.png');
}
}
« no previous file with comments | « sky/framework/components/drawer.dart ('k') | sky/framework/components/icon_button.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698