From a15e8576588cdefdc81e8ebea5176c2439fe2163 Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Mon, 5 Oct 2015 16:52:16 -0700 Subject: [PATCH] Address PR concerns --- packages/flutter_tools/lib/src/init.dart | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/flutter_tools/lib/src/init.dart b/packages/flutter_tools/lib/src/init.dart index a63505ecb4..b0cac56454 100644 --- a/packages/flutter_tools/lib/src/init.dart +++ b/packages/flutter_tools/lib/src/init.dart @@ -146,20 +146,21 @@ void main() { new App( title: "Flutter Demo", routes: { - '/': (RouteArguments args) => new FlutterDemoHome() + '/': (RouteArguments args) => new HelloWorldComponent() } ) ); } -class FlutterDemoHome extends StatelessComponent { +class HelloWorldComponent extends StatelessComponent { Widget build(BuildContext context) { return new Scaffold( toolbar: new ToolBar(center: new Text("Flutter Demo")), body: new Material(child: new Center(child: new Text("Hello world!"))), floatingActionButton: new FloatingActionButton( - child: new Icon(type: 'content/add', size: 24)) - ); + child: new Icon(type: 'content/add', size: 24) + ) + ); } }