mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
remove web flag from create (#39756)
This commit is contained in:
parent
1b429bdb47
commit
76ebcc8a14
@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user