mirror of
https://github.com/flutter/flutter
synced 2024-10-13 03:32:55 +00:00
Convert default project template to fn3
This commit is contained in:
parent
6f640275bd
commit
31498881ce
|
@ -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))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
''';
|
||||
|
|
Loading…
Reference in a new issue