File tree Expand file tree Collapse file tree 7 files changed +6
-35
lines changed Expand file tree Collapse file tree 7 files changed +6
-35
lines changed Original file line number Diff line number Diff line change @@ -110,13 +110,8 @@ abstract class BuildSubCommand extends FlutterCommand {
110
110
/// This is similar to the run message in run_hot.dart
111
111
@protected
112
112
void displayNullSafetyMode (BuildInfo buildInfo) {
113
- _logger.printStatus ('' );
114
- if (buildInfo.nullSafetyMode == NullSafetyMode .sound) {
115
- _logger.printStatus (
116
- '💪 Building with sound null safety 💪' ,
117
- emphasis: true ,
118
- );
119
- } else {
113
+ if (buildInfo.nullSafetyMode != NullSafetyMode .sound) {
114
+ _logger.printStatus ('' );
120
115
_logger.printStatus (
121
116
'Building without sound null safety ⚠️' ,
122
117
emphasis: true ,
Original file line number Diff line number Diff line change @@ -608,10 +608,8 @@ class ResidentWebRunner extends ResidentRunner {
608
608
..writeAsStringSync (websocketUri.toString ());
609
609
}
610
610
_logger.printStatus ('Debug service listening on $websocketUri ' );
611
- _logger.printStatus ('' );
612
- if (debuggingOptions.buildInfo.nullSafetyMode == NullSafetyMode .sound) {
613
- _logger.printStatus ('💪 Running with sound null safety 💪' , emphasis: true );
614
- } else {
611
+ if (debuggingOptions.buildInfo.nullSafetyMode != NullSafetyMode .sound) {
612
+ _logger.printStatus ('' );
615
613
_logger.printStatus (
616
614
'Running without sound null safety ⚠️' ,
617
615
emphasis: true ,
Original file line number Diff line number Diff line change @@ -1029,10 +1029,8 @@ class HotRunner extends ResidentRunner {
1029
1029
}
1030
1030
commandHelp.c.print ();
1031
1031
commandHelp.q.print ();
1032
- globals.printStatus ('' );
1033
- if (debuggingOptions.buildInfo.nullSafetyMode == NullSafetyMode .sound) {
1034
- globals.printStatus ('💪 Running with sound null safety 💪' , emphasis: true );
1035
- } else {
1032
+ if (debuggingOptions.buildInfo.nullSafetyMode != NullSafetyMode .sound) {
1033
+ globals.printStatus ('' );
1036
1034
globals.printStatus (
1037
1035
'Running without sound null safety ⚠️' ,
1038
1036
emphasis: true ,
Original file line number Diff line number Diff line change @@ -105,21 +105,11 @@ void main() {
105
105
nullSafetyMode: NullSafetyMode .unsound,
106
106
treeShakeIcons: false ,
107
107
);
108
- const BuildInfo sound = BuildInfo (
109
- BuildMode .debug,
110
- '' ,
111
- treeShakeIcons: false ,
112
- );
113
108
114
109
final BufferLogger logger = BufferLogger .test ();
115
110
FakeBuildSubCommand (logger).test (unsound);
116
111
expect (logger.statusText,
117
112
contains ('Building without sound null safety ⚠️' ));
118
-
119
- logger.clear ();
120
- FakeBuildSubCommand (logger).test (sound);
121
- expect (logger.statusText,
122
- contains ('💪 Building with sound null safety 💪' ));
123
113
});
124
114
125
115
testUsingContext ('Include only supported sub commands' , () {
Original file line number Diff line number Diff line change @@ -1492,8 +1492,6 @@ flutter:
1492
1492
commandHelp.c,
1493
1493
commandHelp.q,
1494
1494
'' ,
1495
- '💪 Running with sound null safety 💪' ,
1496
- '' ,
1497
1495
'An Observatory debugger and profiler on FakeDevice is available at: null' ,
1498
1496
'' ,
1499
1497
].join ('\n ' )
@@ -1523,8 +1521,6 @@ flutter:
1523
1521
commandHelp.c,
1524
1522
commandHelp.q,
1525
1523
'' ,
1526
- '💪 Running with sound null safety 💪' ,
1527
- '' ,
1528
1524
'An Observatory debugger and profiler on FakeDevice is available at: null' ,
1529
1525
'' ,
1530
1526
].join ('\n ' )
Original file line number Diff line number Diff line change @@ -547,8 +547,6 @@ void main() {
547
547
'Waiting for connection from debug service on FakeDevice...\n '
548
548
'Debug service listening on ws://127.0.0.1/abcd/\n '
549
549
'\n '
550
- '💪 Running with sound null safety 💪\n '
551
- '\n '
552
550
'first\n '
553
551
'\n '
554
552
'second\n '
Original file line number Diff line number Diff line change @@ -591,8 +591,6 @@ void main() {
591
591
'c Clear the screen' ,
592
592
'q Quit (terminate the application on the device).' ,
593
593
'' ,
594
- contains ('Running with sound null safety' ),
595
- '' ,
596
594
startsWith ('An Observatory debugger and profiler on Flutter test device is available at: http://' ),
597
595
startsWith ('The Flutter DevTools debugger and profiler on Flutter test device is available at: http://' ),
598
596
'' ,
@@ -620,8 +618,6 @@ void main() {
620
618
'c Clear the screen' ,
621
619
'q Quit (terminate the application on the device).' ,
622
620
'' ,
623
- contains ('Running with sound null safety' ),
624
- '' ,
625
621
startsWith ('An Observatory debugger and profiler on Flutter test device is available at: http://' ),
626
622
startsWith ('The Flutter DevTools debugger and profiler on Flutter test device is available at: http://' ),
627
623
'' ,
You can’t perform that action at this time.
0 commit comments