Commit 31498881 authored by Chinmay Garde's avatar Chinmay Garde

Convert default project template to fn3

parent 6f640275
......@@ -141,6 +141,17 @@ dev_dependencies:
const _libMain = r'''
import 'package:sky/widgets.dart';
void main() => runApp(new Center(child: new Text('Hello, world!')));
void main() => runApp(new HelloWorldApp());
class HelloWorldApp 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))
);
}
}
''';
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