Commit a15e8576 authored by Chinmay Garde's avatar Chinmay Garde

Address PR concerns

parent 5c922df8
...@@ -146,19 +146,20 @@ void main() { ...@@ -146,19 +146,20 @@ void main() {
new App( new App(
title: "Flutter Demo", title: "Flutter Demo",
routes: <String, RouteBuilder>{ routes: <String, RouteBuilder>{
'/': (RouteArguments args) => new FlutterDemoHome() '/': (RouteArguments args) => new HelloWorldComponent()
} }
) )
); );
} }
class FlutterDemoHome extends StatelessComponent { class HelloWorldComponent extends StatelessComponent {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return new Scaffold( return new Scaffold(
toolbar: new ToolBar(center: new Text("Flutter Demo")), toolbar: new ToolBar(center: new Text("Flutter Demo")),
body: new Material(child: new Center(child: new Text("Hello world!"))), body: new Material(child: new Center(child: new Text("Hello world!"))),
floatingActionButton: new FloatingActionButton( floatingActionButton: new FloatingActionButton(
child: new Icon(type: 'content/add', size: 24)) child: new Icon(type: 'content/add', size: 24)
)
); );
} }
} }
......
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