Unverified Commit 242bb67d authored by Michael Thomsen's avatar Michael Thomsen Committed by GitHub

Update null safety warnings in prep for Dart 3 (#110998)

parent 65d891dd
......@@ -722,6 +722,7 @@ class WindowsStdoutLogger extends StdoutLogger {
.replaceAll('✓', '√')
.replaceAll('🔨', '')
.replaceAll('💪', '')
.replaceAll('⚠️', '!')
.replaceAll('✏️', '');
_stdio.stdoutWrite(windowsMessage);
}
......
......@@ -88,11 +88,11 @@ abstract class BuildSubCommand extends FlutterCommand {
);
} else {
globals.printStatus(
'Building without sound null safety',
'Building without sound null safety ⚠️',
emphasis: true,
);
globals.printStatus(
'For more information see https://dart.dev/null-safety/unsound-null-safety',
'Dart 3 will only support sound null safety, see https://dart.dev/null-safety',
);
}
globals.printStatus('');
......
......@@ -615,11 +615,11 @@ class ResidentWebRunner extends ResidentRunner {
_logger!.printStatus('💪 Running with sound null safety 💪', emphasis: true);
} else {
_logger!.printStatus(
'Running with unsound null safety',
'Running without sound null safety ⚠️',
emphasis: true,
);
_logger!.printStatus(
'For more information see https://dart.dev/null-safety/unsound-null-safety',
'Dart 3 will only support sound null safety, see https://dart.dev/null-safety',
);
}
}
......
......@@ -1026,11 +1026,11 @@ class HotRunner extends ResidentRunner {
globals.printStatus('💪 Running with sound null safety 💪', emphasis: true);
} else {
globals.printStatus(
'Running with unsound null safety',
'Running without sound null safety ⚠️',
emphasis: true,
);
globals.printStatus(
'For more information see https://dart.dev/null-safety/unsound-null-safety',
'Dart 3 will only support sound null safety, see https://dart.dev/null-safety',
);
}
globals.printStatus('');
......
......@@ -69,8 +69,8 @@ void main() {
);
FakeBuildSubCommand().test(unsound);
expect(
testLogger.statusText, contains('Building without sound null safety'));
expect(testLogger.statusText,
contains('Building without sound null safety ⚠️'));
testLogger.clear();
FakeBuildSubCommand().test(sound);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment