diff --git a/sky/sdk/example/demo_launcher/lib/main.dart b/sky/sdk/example/demo_launcher/lib/main.dart index d4eec1dc614f24288ccf880fbfefb7a3a94c2110..c634134af4d742a74836ddf49573f2fd74a91758 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,