Commit 310412fd authored by Hixie's avatar Hixie

Minor style changes around demo cards.

parent f3e07210
...@@ -53,13 +53,21 @@ void launch(String relativeUrl, String bundle) { ...@@ -53,13 +53,21 @@ void launch(String relativeUrl, String bundle) {
} }
class SkyDemo { class SkyDemo {
String name; SkyDemo({
String href; name,
String bundle; this.href,
String description; this.bundle,
typography.TextTheme textTheme; this.description,
BoxDecoration decoration; this.textTheme,
SkyDemo({ this.name, this.href, this.bundle, this.description, this.textTheme, this.decoration }); 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 = [ List<SkyDemo> demos = [
...@@ -162,7 +170,7 @@ class DemoList extends Component { ...@@ -162,7 +170,7 @@ class DemoList extends Component {
Widget buildDemo(SkyDemo demo) { Widget buildDemo(SkyDemo demo) {
return new Listener( return new Listener(
key: demo.name, key: demo.key,
onGestureTap: (_) => launch(demo.href, demo.bundle), onGestureTap: (_) => launch(demo.href, demo.bundle),
child: new Container( child: new Container(
height: kCardHeight, height: kCardHeight,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment