Update null safety warnings in prep for Dart 3 (#110998)
This commit is contained in:
parent
65d891ddde
commit
242bb67d19
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user