File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
test/general.shard/reporting Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -156,12 +156,14 @@ const Feature flutterWebWasm = Feature(
156
156
),
157
157
);
158
158
159
+ const String kCliAnimationsFeatureName = 'cli-animations' ;
160
+
159
161
/// The [Feature] for CLI animations.
160
162
///
161
163
/// The TERM environment variable set to "dumb" turns this off.
162
164
const Feature cliAnimation = Feature .fullyEnabled (
163
165
name: 'animations in the command line interface' ,
164
- configSetting: 'cli-animations' ,
166
+ configSetting: kCliAnimationsFeatureName ,
165
167
);
166
168
167
169
/// Enable native assets compilation and bundling.
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ const String _kFlutterFirstRunMessage = '''
36
36
║ See Google's privacy policy: ║
37
37
║ https://policies.google.com/privacy ║
38
38
║ ║
39
- ║ To disable animations in this tool, use 'flutter config --no-animations'. ║
39
+ ║ To disable animations in this tool, use ║
40
+ ║ 'flutter config --no-cli-animations'. ║
40
41
╚════════════════════════════════════════════════════════════════════════════╝
41
42
''' ;
42
43
Original file line number Diff line number Diff line change 4
4
5
5
import 'package:file/memory.dart' ;
6
6
import 'package:flutter_tools/src/base/logger.dart' ;
7
+ import 'package:flutter_tools/src/features.dart' ;
7
8
import 'package:flutter_tools/src/persistent_tool_state.dart' ;
8
9
import 'package:flutter_tools/src/reporting/first_run.dart' ;
9
10
@@ -16,6 +17,12 @@ void main() {
16
17
expect (messenger.licenseTerms, contains ('Welcome to Flutter' ));
17
18
});
18
19
20
+ testWithoutContext ('FirstRunMessenger informs user how to disable animations' , () {
21
+ final FirstRunMessenger messenger = setUpFirstRunMessenger (redisplayWelcomeMessage: false );
22
+
23
+ expect (messenger.licenseTerms, contains ('flutter config --no-$kCliAnimationsFeatureName ' ));
24
+ });
25
+
19
26
testWithoutContext ('FirstRunMessenger requires redisplay if it has never been run before' , () {
20
27
final FirstRunMessenger messenger = setUpFirstRunMessenger ();
21
28
You can’t perform that action at this time.
0 commit comments