[flutter_tool] Adds a flag to disable Impeller (#122960)

This commit is contained in:
Zachary Anderson
2023-03-20 22:23:23 -07:00
committed by GitHub
parent e260dd2ad2
commit 7e88acfb0e
20 changed files with 104 additions and 47 deletions

View File

@@ -1017,11 +1017,13 @@ abstract class FlutterCommand extends Command<void> {
void addEnableImpellerFlag({required bool verboseHelp}) {
argParser.addFlag('enable-impeller',
negatable: false,
hide: !verboseHelp,
help: 'Whether to enable the experimental Impeller rendering engine. '
'Impeller is currently only supported on iOS and Android. This flag will '
'be ignored when targeting other platforms.',
defaultsTo: null,
help: 'Whether to enable the Impeller rendering engine. '
'Impeller is the default renderer on iOS. On Android, Impeller '
'is available but not the default. This flag will cause Impeller '
'to be used on Android. On other platforms, this flag will be '
'ignored.',
);
}