[flutter_tools] remove --with-driver-test (#67783)

Remove flutter create --with-driver-test . Fixes #64095
This commit is contained in:
Jonah Williams
2020-10-09 21:03:37 -07:00
committed by GitHub
parent da92fc92e9
commit 1a9d635f64
9 changed files with 11 additions and 99 deletions

View File

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

View File

@@ -31,10 +31,6 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
{{#withDriverTest}}
flutter_driver:
sdk: flutter
{{/withDriverTest}}
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec