diff --git a/packages/flutter_tools/templates/create/lib/main.dart.tmpl b/packages/flutter_tools/templates/create/lib/main.dart.tmpl index b83f001ae7..c808003a2e 100644 --- a/packages/flutter_tools/templates/create/lib/main.dart.tmpl +++ b/packages/flutter_tools/templates/create/lib/main.dart.tmpl @@ -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 {