Commit 171b1b08 authored by Devon Carew's avatar Devon Carew Committed by GitHub

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

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