tweak the flutter create template to use the function shorthand for main() (#12654)

This commit is contained in:
Devon Carew
2017-10-20 10:46:07 -07:00
committed by GitHub
parent 796c5439f6
commit 171b1b08c9

View File

@@ -7,14 +7,17 @@ import 'package:flutter/services.dart';
import 'package:{{pluginProjectName}}/{{pluginProjectName}}.dart';
{{/withPluginHook}}
void main() {
{{^withDriverTest}}
void main() => runApp(new MyApp());
{{/withDriverTest}}
{{#withDriverTest}}
void main() {
// Enable integration testing with the Flutter Driver extension.
// See https://flutter.io/testing/ for more info.
enableFlutterDriverExtension();
{{/withDriverTest}}
runApp(new MyApp());
}
{{/withDriverTest}}
{{^withPluginHook}}
class MyApp extends StatelessWidget {