Commit 5c922df8 authored by Chinmay Garde's avatar Chinmay Garde

Use the App widget in the Flutter app template

parent 31498881
......@@ -141,9 +141,18 @@ dev_dependencies:
const _libMain = r'''
import 'package:sky/widgets.dart';
void main() => runApp(new HelloWorldApp());
void main() {
runApp(
new App(
title: "Flutter Demo",
routes: <String, RouteBuilder>{
'/': (RouteArguments args) => new FlutterDemoHome()
}
)
);
}
class HelloWorldApp extends StatelessComponent {
class FlutterDemoHome extends StatelessComponent {
Widget build(BuildContext context) {
return new Scaffold(
toolbar: new ToolBar(center: new Text("Flutter Demo")),
......
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