[flutter_tools] fix instructions to disable CLI animations (#139094)

Fixes https://github.com/flutter/flutter/issues/139011
This commit is contained in:
Christopher Fujino
2023-11-27 14:00:50 -08:00
committed by GitHub
parent 6035c5ccba
commit 6bf3ccd47d
3 changed files with 12 additions and 2 deletions

View File

@@ -156,12 +156,14 @@ const Feature flutterWebWasm = Feature(
),
);
const String kCliAnimationsFeatureName = 'cli-animations';
/// The [Feature] for CLI animations.
///
/// The TERM environment variable set to "dumb" turns this off.
const Feature cliAnimation = Feature.fullyEnabled(
name: 'animations in the command line interface',
configSetting: 'cli-animations',
configSetting: kCliAnimationsFeatureName,
);
/// Enable native assets compilation and bundling.

View File

@@ -36,7 +36,8 @@ const String _kFlutterFirstRunMessage = '''
║ See Google's privacy policy: ║
║ https://policies.google.com/privacy ║
║ ║
║ To disable animations in this tool, use 'flutter config --no-animations'. ║
║ To disable animations in this tool, use ║
║ 'flutter config --no-cli-animations'. ║
╚════════════════════════════════════════════════════════════════════════════╝
''';