* Fix typos

* lowercase animated & opacity

* Undo typo fix

---------

Co-authored-by: Michael Goderbauer <goderbauer@google.com>
This commit is contained in:
Lioness100
2023-02-23 14:43:21 -05:00
committed by GitHub
parent 3681b27a47
commit 26b6c1bedd
175 changed files with 285 additions and 284 deletions

View File

@@ -604,7 +604,7 @@ class AndroidDevice extends Device {
if (debuggingOptions.debuggingEnabled) {
observatoryDiscovery = ProtocolDiscovery.observatory(
// Avoid using getLogReader, which returns a singleton instance, because the
// observatory discovery will dipose at the end. creating a new logger here allows
// observatory discovery will dispose at the end. creating a new logger here allows
// logs to be surfaced normally during `flutter drive`.
await AdbLogReader.createLogReader(
this,

View File

@@ -169,7 +169,7 @@ class AOTSnapshotter {
]);
}
// When buiding for iOS and splitting out debug info, we want to strip
// When building for iOS and splitting out debug info, we want to strip
// manually after the dSYM export, instead of in the `gen_snapshot`.
final bool stripAfterBuild;
if (targetingApplePlatform) {

View File

@@ -231,7 +231,7 @@ class PosixProcessSignal extends ProcessSignal {
/// * by throwing an exception asynchronously, and
/// * by completing the Future stdout.done with an error.
///
/// This class enapsulates all three so that we don't have to worry about it
/// This class encapsulates all three so that we don't have to worry about it
/// anywhere else.
class Stdio {
Stdio();

View File

@@ -625,7 +625,7 @@ class StdoutLogger extends Logger {
}
}
typedef _Writter = void Function(String message);
typedef _Writer = void Function(String message);
/// Wraps the message in a box, and writes the bytes by calling [write].
///
@@ -643,7 +643,7 @@ typedef _Writter = void Function(String message);
void _generateBox({
required String message,
required int wrapColumn,
required _Writter write,
required _Writer write,
required Terminal terminal,
String? title,
}) {

View File

@@ -318,13 +318,13 @@ class _LinuxUtils extends _PosixUtils {
try {
// Split the operating system version which should be formatted as
// "Linux kernelRelease build", by spaces.
final List<String> osVersionSplitted = _platform.operatingSystemVersion.split(' ');
if (osVersionSplitted.length < 3) {
final List<String> osVersionSplit = _platform.operatingSystemVersion.split(' ');
if (osVersionSplit.length < 3) {
// The operating system version didn't have the expected format.
// Initialize as an empty string.
kernelRelease = '';
} else {
kernelRelease = ' ${osVersionSplitted[1]}';
kernelRelease = ' ${osVersionSplit[1]}';
}
} on Exception catch (e) {
_logger.printTrace('Failed obtaining kernel release for Linux: $e');
@@ -336,8 +336,8 @@ class _LinuxUtils extends _PosixUtils {
}
String _getOsReleaseValueForKey(String osRelease, String key) {
final List<String> osReleaseSplitted = osRelease.split('\n');
for (String entry in osReleaseSplitted) {
final List<String> osReleaseSplit = osRelease.split('\n');
for (String entry in osReleaseSplit) {
entry = entry.trim();
final List<String> entryKeyValuePair = entry.split('=');
if(entryKeyValuePair[0] == key) {

View File

@@ -281,9 +281,9 @@ If a file already exists at the backup location, it will be overwritten.
logger.printStatus(
wasBackedUp
? 'Successfully resetted the custom devices config file and created a '
? 'Successfully reset the custom devices config file and created a '
'backup at "$configBackupPath".'
: 'Successfully resetted the custom devices config file.'
: 'Successfully reset the custom devices config file.'
);
return FlutterCommandResult.success();
}

View File

@@ -140,7 +140,7 @@ abstract class RunCommandBase extends FlutterCommand with DeviceBasedDevelopment
..addFlag('enable-dart-profiling',
defaultsTo: true,
help: 'Whether the Dart VM sampling CPU profiler is enabled. This flag '
'is only meaningnful in debug and profile builds.',
'is only meaningful in debug and profile builds.',
)
..addFlag('enable-software-rendering',
negatable: false,

View File

@@ -57,7 +57,7 @@ enum _InputStreamParseState {
/// message data.
///
/// If the JSON object contains the key [_binaryLengthKey] with an integer
/// value (will be refered to as N), the following N bytes after the newline
/// value (will be referred to as N), the following N bytes after the newline
/// character will contain the binary part of the message.
@visibleForTesting
class DaemonInputStreamConverter {

View File

@@ -231,7 +231,7 @@ abstract class Pub {
/// should be passed appropriately in [arguments]. This ensures output from
/// pub will refer to relative paths correctly.
///
/// [touchesPackageConfig] should be true if this is a command expexted to
/// [touchesPackageConfig] should be true if this is a command expected to
/// create a new `.dart_tool/package_config.json` file.
Future<void> interactively(
List<String> arguments, {

View File

@@ -2,7 +2,7 @@
This document is Flutter-specific. For information on the standard Dart DAP implementation, [see this document](https://github.com/dart-lang/sdk/blob/main/pkg/dds/tool/dap/README.md).
Flutter includes support for debugging using [the Debug Adapter Protocol](https://microsoft.github.io/debug-adapter-protocol/) as an alternative to using the [VM Service](https://github.com/dart-lang/sdk/blob/master/runtime/vm/service/service.md) directly, simplying the integration for new editors.
Flutter includes support for debugging using [the Debug Adapter Protocol](https://microsoft.github.io/debug-adapter-protocol/) as an alternative to using the [VM Service](https://github.com/dart-lang/sdk/blob/master/runtime/vm/service/service.md) directly, simplifying the integration for new editors.
The debug adapters are started with the `flutter debug-adapter` command and are intended to be consumed by DAP-compliant tools such as Flutter-specific extensions for editors, or configured by users whose editors include generic configurable DAP clients.

View File

@@ -591,7 +591,7 @@ class FlutterDebugAdapter extends FlutterBaseDebugAdapter {
// debugging, we must try to detect which messages are likely Flutter
// messages as reliably as possible, as trying to process users output
// as a Flutter message may result in an unhandled error that will
// terminate the debug adater in a way that does not provide feedback
// terminate the debug adapter in a way that does not provide feedback
// because the standard crash violates the DAP protocol.
Object? jsonData;
try {

View File

@@ -210,7 +210,7 @@ class MigrateConfig {
this.unmanagedFiles = kDefaultUnmanagedFiles
}) : platformConfigs = platformConfigs ?? <SupportedPlatform, MigratePlatformConfig>{};
/// A mapping of the files that are unmanaged by defult for each platform.
/// A mapping of the files that are unmanaged by default for each platform.
static const List<String> kDefaultUnmanagedFiles = <String>[
'lib/main.dart',
'ios/Runner.xcodeproj/project.pbxproj',

View File

@@ -59,7 +59,7 @@ class HttpHostValidator extends DoctorValidator {
} on HttpException catch (error) {
return 'An HTTP error occurred while checking "$host": ${error.message}';
} on HandshakeException catch (error) {
return 'A crytographic error occurred while checking "$host": ${error.message}\n'
return 'A cryptographic error occurred while checking "$host": ${error.message}\n'
'You may be experiencing a man-in-the-middle attack, your network may be '
'compromised, or you may have malware installed on your computer.';
} on OSError catch (error) {

View File

@@ -378,7 +378,7 @@ class IOSDevice extends Device {
deviceLogReader.debuggerStream = iosDeployDebugger;
}
}
// Don't port foward if debugging with a network device.
// Don't port forward if debugging with a network device.
observatoryDiscovery = ProtocolDiscovery.observatory(
deviceLogReader,
portForwarder: interfaceType == IOSDeviceConnectionInterface.network ? null : portForwarder,

View File

@@ -27,7 +27,7 @@ import 'xcode_project.dart';
export 'cmake_project.dart';
export 'xcode_project.dart';
/// Emum for each officially supported platform.
/// Enum for each officially supported platform.
enum SupportedPlatform {
android,
ios,

View File

@@ -1206,7 +1206,7 @@ abstract class ResidentRunner extends ResidentHandlers {
/// Connect to a flutter application.
///
/// [needsFullRestart] defaults to `true`, and controls if the frontend server should
/// compile a full dill. This should be set to `false` if this is called in [ResidentRunner.run], since that method already perfoms an initial compilation.
/// compile a full dill. This should be set to `false` if this is called in [ResidentRunner.run], since that method already performs an initial compilation.
Future<int?> attach({
Completer<DebugConnectionInfo>? connectionInfoCompleter,
Completer<void>? appStartedCompleter,

View File

@@ -157,6 +157,7 @@ String generateMainModule({
required bool nativeNullAssertions,
String bootstrapModule = 'main_module.bootstrap',
}) {
// The typo below in "EXTENTION" is load-bearing, package:build depends on it.
return '''
/* ENTRYPOINT_EXTENTION_MARKER */
// Disable require module timeout

View File

@@ -152,7 +152,7 @@ class ChromiumLauncher {
/// Launch a Chromium browser to a particular `host` page.
///
/// [headless] defaults to false, and controls whether we open a headless or
/// a "headfull" browser.
/// a "headful" browser.
///
/// [debugPort] is Chrome's debugging protocol port. If null, a random free
/// port is picked automatically.

View File

@@ -135,7 +135,7 @@ abstract class ChromiumDevice extends Device {
if (pattern.hasMatch(debuggingOptions.webLaunchUrl!)) {
url = debuggingOptions.webLaunchUrl!;
} else {
throwToolExit('"${debuggingOptions.webLaunchUrl}" is not a vaild HTTP URL.');
throwToolExit('"${debuggingOptions.webLaunchUrl}" is not a valid HTTP URL.');
}
} else {
url = platformArgs['uri']! as String;

View File

@@ -349,7 +349,7 @@ class VisualStudio {
/// will be returned, otherwise returns the latest installed version regardless
/// of components and version, or null if no such installation is found.
late final VswhereDetails? _bestVisualStudioDetails = () {
// First, attempt to find the latest version of Visual Studio that satifies
// First, attempt to find the latest version of Visual Studio that satisfies
// both the minimum supported version and the required workloads.
// Check in the order of stable VS, stable BT, pre-release VS, pre-release BT.
final List<String> minimumVersionArguments = <String>[
@@ -371,7 +371,7 @@ class VisualStudio {
}
}
// An installation that satifies requirements could not be found.
// An installation that satisfies requirements could not be found.
// Fallback to the latest Visual Studio installation.
return _visualStudioDetails(
additionalArguments: <String>[_vswherePrereleaseArgument, '-all']);