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

Side by Side Diff: sky/framework/components/icon.dart

Issue 990493002: Make package: work like Dart expects in preparation for a Sky SDK (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Made deploy_sdk 100x faster in the --dev-environment case 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 import '../fn.dart'; 5 import '../fn.dart';
6 6
7 const String kAssetBase = '/sky/assets/material-design-icons'; 7 // TODO(eseidel): This should use package:.
8 const String kAssetBase = '/packages/sky/assets/material-design-icons';
8 9
9 class Icon extends Component { 10 class Icon extends Component {
10 Style style; 11 Style style;
11 int size; 12 int size;
12 String type; 13 String type;
13 14
14 Icon({ 15 Icon({
15 String key, 16 String key,
16 this.style, 17 this.style,
17 this.size, 18 this.size,
(...skipping 10 matching lines...) Expand all
28 } 29 }
29 30
30 return new Image( 31 return new Image(
31 style: style, 32 style: style,
32 width: size, 33 width: size,
33 height: size, 34 height: size,
34 src: '${kAssetBase}/${category}/2x_web/ic_${subtype}_${size}dp.png' 35 src: '${kAssetBase}/${category}/2x_web/ic_${subtype}_${size}dp.png'
35 ); 36 );
36 } 37 }
37 } 38 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698