Remove comments unrelated to plugin example app (#10532)
* Remove comments unrelated to plugin example app * Review feedback
This commit is contained in:
parent
739b379eca
commit
4d2806e7e5
@ -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(
|
||||||
|
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'),
|
||||||
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user