mirror of
https://github.com/flutter/flutter
synced 2024-10-13 11:42:54 +00:00
Fix Flutter project template
This commit is contained in:
parent
fbb1f866d4
commit
d92f3fedde
|
@ -155,7 +155,7 @@ void main() {
|
||||||
class HelloWorldComponent 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)
|
||||||
|
|
Loading…
Reference in a new issue