Commit 3cf1ea6d authored by Michael Thomsen's avatar Michael Thomsen Committed by GitHub

Small update to instructional comments in app template (#8468)

* Small update to instructional comments in app template

* Update Flutter Driver comment

Good suggestion to add the link, Seth! I also updated the working to match what that page uses.
parent 9aa61e6a
...@@ -5,8 +5,8 @@ import 'package:flutter_driver/driver_extension.dart'; ...@@ -5,8 +5,8 @@ import 'package:flutter_driver/driver_extension.dart';
void main() { void main() {
{{#withDriverTest}} {{#withDriverTest}}
// Starts the app with Flutter Driver extension enabled to allow Flutter Driver // Enable integration testing with the Flutter Driver extension.
// to test the app. // See https://flutter.io/testing/ for more info.
enableFlutterDriverExtension(); enableFlutterDriverExtension();
{{/withDriverTest}} {{/withDriverTest}}
runApp(new MyApp()); runApp(new MyApp());
...@@ -24,9 +24,10 @@ class MyApp extends StatelessWidget { ...@@ -24,9 +24,10 @@ class MyApp extends StatelessWidget {
// Try running your application with "flutter run". You'll see // Try running your application with "flutter run". You'll see
// the application has a blue toolbar. Then, without quitting // the application has a blue toolbar. Then, without quitting
// the app, try changing the primarySwatch below to Colors.green // the app, try changing the primarySwatch below to Colors.green
// and press "r" in the console where you ran "flutter run". // and then invoke "hot reload" (press "r" in the console where
// We call this a "hot reload". Notice that the counter didn't // you ran "flutter run", or press Run > Hot Reload App in IntelliJ).
// reset back to zero -- the application is not restarted. // Notice that the counter didn't reset back to zero -- the application
// is not restarted.
primarySwatch: Colors.blue, primarySwatch: Colors.blue,
), ),
home: new MyHomePage(title: 'Flutter Demo Home Page'), home: new MyHomePage(title: 'Flutter Demo Home Page'),
...@@ -91,8 +92,7 @@ class _MyHomePageState extends State<MyHomePage> { ...@@ -91,8 +92,7 @@ class _MyHomePageState extends State<MyHomePage> {
onPressed: _incrementCounter, onPressed: _incrementCounter,
tooltip: 'Increment', tooltip: 'Increment',
child: new Icon(Icons.add), child: new Icon(Icons.add),
), // This trailing comma tells the Dart formatter to use ), // This trailing comma makes auto-formatting nicer for build methods.
// a style that looks nicer for build methods.
); );
} }
} }
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