Unverified Commit 76ebcc8a authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

remove web flag from create (#39756)

parent 1b429bdb
......@@ -146,7 +146,7 @@ class ResidentWebRunner extends ResidentRunner {
);
if (package == null) {
printError('No application found for TargetPlatform.web_javascript.');
printError('To add web support to a project, run `flutter create --web .`.');
printError('To add web support to a project, run `flutter create .`.');
return 1;
}
if (!fs.isFileSync(mainPath)) {
......
......@@ -144,13 +144,13 @@ class CreateCommand extends FlutterCommand {
defaultsTo: false,
help: 'Generate a project using the AndroidX support libraries',
);
// Deprecated
argParser.addFlag(
'web',
negatable: true,
defaultsTo: false,
hide: true,
help: '(Experimental) Generate the web specific tooling. Only supported '
'on non-stable branches',
help: 'Deprecated',
);
}
......@@ -376,7 +376,7 @@ class CreateCommand extends FlutterCommand {
androidX: argResults['androidx'],
androidLanguage: argResults['android-language'],
iosLanguage: argResults['ios-language'],
web: argResults['web'],
web: featureFlags.isWebEnabled,
);
final String relativeDirPath = fs.path.relative(projectDirPath);
......@@ -614,7 +614,7 @@ To edit platform code in an IDE see https://flutter.dev/developing-packages/#edi
'iosLanguage': iosLanguage,
'flutterRevision': FlutterVersion.instance.frameworkRevision,
'flutterChannel': FlutterVersion.instance.channel,
'web': web && featureFlags.isWebEnabled,
'web': web,
};
}
......
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