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