From da2fa52eb469f8a6de14132a397fbd1c1966ecba Mon Sep 17 00:00:00 2001 From: Hixie Date: Tue, 21 Jul 2015 11:32:37 -0700 Subject: [PATCH] Minor style changes around demo cards. --- sky/sdk/example/demo_launcher/lib/main.dart | 24 ++++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/sky/sdk/example/demo_launcher/lib/main.dart b/sky/sdk/example/demo_launcher/lib/main.dart index d4eec1dc614f2..c634134af4d74 100644 --- a/sky/sdk/example/demo_launcher/lib/main.dart +++ b/sky/sdk/example/demo_launcher/lib/main.dart @@ -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 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,