Commit a15e8576 authored by Chinmay Garde's avatar Chinmay Garde

Address PR concerns

parent 5c922df8
......@@ -146,20 +146,21 @@ void main() {
new App(
title: "Flutter Demo",
routes: <String, RouteBuilder>{
'/': (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)
)
);
}
}
......
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