Remove comments unrelated to plugin example app (#10532)

* Remove comments unrelated to plugin example app

* Review feedback
This commit is contained in:
Michael Thomsen 2017-06-08 10:51:56 +02:00 committed by GitHub
parent 739b379eca
commit 4d2806e7e5

View File

@ -16,6 +16,7 @@ void main() {
runApp(new MyApp()); runApp(new MyApp());
} }
{{^withPluginHook}}
class MyApp extends StatelessWidget { class MyApp extends StatelessWidget {
// This widget is the root of your application. // This widget is the root of your application.
@override @override
@ -57,7 +58,6 @@ class MyHomePage extends StatefulWidget {
_MyHomePageState createState() => new _MyHomePageState(); _MyHomePageState createState() => new _MyHomePageState();
} }
{{^withPluginHook}}
class _MyHomePageState extends State<MyHomePage> { class _MyHomePageState extends State<MyHomePage> {
int _counter = 0; int _counter = 0;
@ -129,7 +129,12 @@ class _MyHomePageState extends State<MyHomePage> {
} }
{{/withPluginHook}} {{/withPluginHook}}
{{#withPluginHook}} {{#withPluginHook}}
class _MyHomePageState extends State<MyHomePage> { class MyApp extends StatefulWidget {
@override
_MyAppState createState() => new _MyAppState();
}
class _MyAppState extends State<MyApp> {
String _platformVersion = 'Unknown'; String _platformVersion = 'Unknown';
@override @override
@ -161,11 +166,15 @@ class _MyHomePageState extends State<MyHomePage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return new Scaffold( return new MaterialApp(
appBar: new AppBar( home: new Scaffold(
title: new Text('Plugin example app'), appBar: new AppBar(
title: new Text('Plugin example app'),
),
body: new Center(
child: new Text('Running on: $_platformVersion\n'),
),
), ),
body: new Center(child: new Text('Running on: $_platformVersion\n')),
); );
} }
} }