[web] Switch flutter tool web-renderer default for web to auto (#73502)

This commit is contained in:
Ferhat
2021-01-07 15:54:04 -08:00
committed by GitHub
parent 705811fee2
commit d4c77f31ef
2 changed files with 95 additions and 55 deletions

View File

@@ -461,7 +461,7 @@ abstract class FlutterCommand extends Command<void> {
void usesWebRendererOption() {
argParser.addOption('web-renderer',
defaultsTo: 'html',
defaultsTo: 'auto',
allowed: <String>['auto', 'canvaskit', 'html'],
help: 'The renderer implementation to use when building for the web. Possible values are:\n'
'html - always use the HTML renderer. This renderer uses a combination of HTML, CSS, SVG, 2D Canvas, and WebGL. This is the default.\n'
@@ -902,7 +902,7 @@ abstract class FlutterCommand extends Command<void> {
? stringsArg(FlutterOptions.kDartDefinesOption)
: <String>[];
if (argParser.options.containsKey('web-renderer') && argResults.wasParsed('web-renderer')) {
if (argParser.options.containsKey('web-renderer')) {
dartDefines = updateDartDefines(dartDefines, stringArg('web-renderer'));
}