提交 ea5361cb 编写于 作者: I Ian Hickson

Merge pull request #186 from Hixie/homedemo

Minor style changes around demo cards.
......@@ -53,13 +53,21 @@ void launch(String relativeUrl, String bundle) {
}
class SkyDemo {
String name;
String href;
String bundle;
String description;
typography.TextTheme textTheme;
BoxDecoration decoration;
SkyDemo({ this.name, this.href, this.bundle, this.description, this.textTheme, this.decoration });
SkyDemo({
name,
this.href,
this.bundle,
this.description,
this.textTheme,
this.decoration
}) : name = name, key = name;
final String name;
final String key;
final String href;
final String bundle;
final String description;
final typography.TextTheme textTheme;
final BoxDecoration decoration;
}
List<SkyDemo> demos = [
......@@ -162,7 +170,7 @@ class DemoList extends Component {
Widget buildDemo(SkyDemo demo) {
return new Listener(
key: demo.name,
key: demo.key,
onGestureTap: (_) => launch(demo.href, demo.bundle),
child: new Container(
height: kCardHeight,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册