Commit 4d2806e7 authored by Michael Thomsen's avatar Michael Thomsen Committed by GitHub

Remove comments unrelated to plugin example app (#10532)

* Remove comments unrelated to plugin example app

* Review feedback
parent 739b379e
...@@ -16,6 +16,7 @@ void main() { ...@@ -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 { ...@@ -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> { ...@@ -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> { ...@@ -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(
home: new Scaffold(
appBar: new AppBar( appBar: new AppBar(
title: new Text('Plugin example app'), 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'),
),
),
); );
} }
} }
......
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