OLD | NEW |
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 List<Style> styles; | 11 List<Style> styles; |
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.styles, | 17 this.styles, |
17 this.size, | 18 this.size, |
(...skipping 10 matching lines...) Expand all Loading... |
28 } | 29 } |
29 | 30 |
30 return new Image( | 31 return new Image( |
31 styles: styles, | 32 styles: styles, |
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 } |
OLD | NEW |