* 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

@@ -296,7 +296,7 @@ See the [source](https://github.com/flutter/flutter/blob/master/packages/flutter
## Changelog
- 0.6.1: Added `coldBoot` option to `emulator.lauch` command.
- 0.6.1: Added `coldBoot` option to `emulator.launch` command.
- 0.6.0: Added `debounce` option to `app.restart` command.
- 0.5.3: Added `emulatorId` field to device.
- 0.5.2: Added `platformType` and `category` fields to emulator.

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']);

View File

@@ -60,7 +60,7 @@ class WindowClassRegistrar {
public:
~WindowClassRegistrar() = default;
// Returns the singleton registar instance.
// Returns the singleton registrar instance.
static WindowClassRegistrar* GetInstance() {
if (!instance_) {
instance_ = new WindowClassRegistrar();

View File

@@ -77,7 +77,7 @@ class Win32Window {
// OS callback called by message pump. Handles the WM_NCCREATE message which
// is passed when the non-client area is being created and enables automatic
// non-client DPI scaling so that the non-client area automatically
// responsponds to changes in DPI. All other messages are handled by
// responds to changes in DPI. All other messages are handled by
// MessageHandler.
static LRESULT CALLBACK WndProc(HWND const window,
UINT const message,

View File

@@ -23,7 +23,7 @@ TEST({{pluginClass}}, GetPlatformVersion) {
FlValue* result = fl_method_success_response_get_result(
FL_METHOD_SUCCESS_RESPONSE(response));
ASSERT_EQ(fl_value_get_type(result), FL_VALUE_TYPE_STRING);
// The full string varies, so just valiate that it has the right format.
// The full string varies, so just validate that it has the right format.
EXPECT_THAT(fl_value_get_string(result), testing::StartsWith("Linux "));
}

View File

@@ -8,7 +8,7 @@ This project is a starting point for a Flutter
[FFI plugin](https://docs.flutter.dev/development/platform-integration/c-interop),
a specialized package that includes native code directly invoked with Dart FFI.
## Project stucture
## Project structure
This template uses the following structure:
@@ -21,7 +21,7 @@ This template uses the following structure:
* platform folders (`android`, `ios`, `windows`, etc.): Contains the build files
for building and bundling the native code library with the platform application.
## Buidling and bundling native code
## Building and bundling native code
The `pubspec.yaml` specifies FFI plugins as follows:

View File

@@ -1120,7 +1120,7 @@ void main() {
expect(
logger.statusText,
contains(
'Successfully resetted the custom devices config file and created a '
'Successfully reset the custom devices config file and created a '
'backup at "/.flutter_custom_devices.json.bak".'
)
);
@@ -1152,7 +1152,7 @@ void main() {
expect(
logger.statusText,
contains(
'Successfully resetted the custom devices config file.'
'Successfully reset the custom devices config file.'
)
);

View File

@@ -605,7 +605,7 @@ class NeverEndingFlutterDriverFactory extends Fake implements FlutterDriverFacto
/// A [DriverService] that will return a Future from [startTest] that will never complete.
///
/// This is to similate when the test will take a long time, but a signal is
/// This is to simulate when the test will take a long time, but a signal is
/// expected to interrupt the process.
class NeverEndingDriverService extends Fake implements DriverService {
NeverEndingDriverService(this.callback);

View File

@@ -1663,7 +1663,7 @@ void main() {
expect(LineSplitter.split(metadata), contains('project_type: app'));
});
testUsingContext('can re-gen default template over existing app project with no metadta and detect the type', () async {
testUsingContext('can re-gen default template over existing app project with no metadata and detect the type', () async {
Cache.flutterRoot = '../..';
final CreateCommand command = CreateCommand();

View File

@@ -65,7 +65,7 @@ void main() {
buildGradleTemplate.createSync(recursive: true);
androidManifestTemplate.createSync(recursive: true);
buildGradleTemplate.writeAsStringSync('fake build.gradle template {{componentName}}', flush: true, mode: FileMode.append);
androidManifestTemplate.writeAsStringSync('fake AndroidManigest.xml template {{componentName}}', flush: true, mode: FileMode.append);
androidManifestTemplate.writeAsStringSync('fake AndroidManifest.xml template {{componentName}}', flush: true, mode: FileMode.append);
final DeferredComponentsPrebuildValidator validator = DeferredComponentsPrebuildValidator(
projectDir,
@@ -107,7 +107,7 @@ void main() {
buildGradleTemplate.createSync(recursive: true);
androidManifestTemplate.createSync(recursive: true);
buildGradleTemplate.writeAsStringSync('fake build.gradle template {{componentName}}', flush: true, mode: FileMode.append);
androidManifestTemplate.writeAsStringSync('fake AndroidManigest.xml template {{componentName}}', flush: true, mode: FileMode.append);
androidManifestTemplate.writeAsStringSync('fake AndroidManifest.xml template {{componentName}}', flush: true, mode: FileMode.append);
final DeferredComponentsPrebuildValidator validator = DeferredComponentsPrebuildValidator(
projectDir,
@@ -149,7 +149,7 @@ void main() {
buildGradleTemplate.createSync(recursive: true);
androidManifestTemplate.createSync(recursive: true);
buildGradleTemplate.writeAsStringSync('fake build.gradle template {{componentName}}', flush: true, mode: FileMode.append);
androidManifestTemplate.writeAsStringSync('fake AndroidManigest.xml template {{componentName}}', flush: true, mode: FileMode.append);
androidManifestTemplate.writeAsStringSync('fake AndroidManifest.xml template {{componentName}}', flush: true, mode: FileMode.append);
final DeferredComponentsPrebuildValidator validator = DeferredComponentsPrebuildValidator(
projectDir,

View File

@@ -105,7 +105,7 @@ C:\\a.txt: C:\\b.txt
});
testWithoutContext('Resillient to weird whitespace', () {
testWithoutContext('Resilient to weird whitespace', () {
final File depfileSource = fileSystem.file('example.d')..writeAsStringSync(r'''
a.txt
: b.txt c.txt
@@ -118,7 +118,7 @@ a.txt
expect(depfile.outputs.single.path, 'a.txt');
});
testWithoutContext('Resillient to duplicate files', () {
testWithoutContext('Resilient to duplicate files', () {
final File depfileSource = fileSystem.file('example.d')..writeAsStringSync(r'''
a.txt: b.txt b.txt
''');
@@ -128,7 +128,7 @@ a.txt: b.txt b.txt
expect(depfile.outputs.single.path, 'a.txt');
});
testWithoutContext('Resillient to malformed file, missing :', () {
testWithoutContext('Resilient to malformed file, missing :', () {
final File depfileSource = fileSystem.file('example.d')..writeAsStringSync(r'''
a.text b.txt
''');

View File

@@ -327,7 +327,7 @@ void main() {
expect(fileSystem.file('/.tmp_rand0/0.8255140718871702.temp'), isNot(exists));
});
testWithoutContext('DevelopmentShaderCompiler can compile JSON for web targts', () async {
testWithoutContext('DevelopmentShaderCompiler can compile JSON for web targets', () async {
final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[
FakeCommand(
command: <String>[

View File

@@ -78,7 +78,7 @@ class MockFlutterDebugAdapter extends FlutterDebugAdapter {
/// A list of all messages sent from the adapter to the `flutter run` processes `stdin`.
final List<Map<String, Object?>> dapToFlutterMessages = <Map<String, Object?>>[];
/// The `method`s of all mesages sent to the `flutter run` processes `stdin`
/// The `method`s of all messages sent to the `flutter run` processes `stdin`
/// by the debug adapter.
List<String> get dapToFlutterRequests => dapToFlutterMessages
.map((Map<String, Object?> message) => message['method'] as String?)

View File

@@ -144,7 +144,7 @@ migration:
expect(projectMetadata.projectType, FlutterProjectType.app);
expect(projectMetadata.migrateConfig.platformConfigs[SupportedPlatform.root]?.createRevision, 'abcdefg');
expect(projectMetadata.migrateConfig.platformConfigs[SupportedPlatform.root]?.baseRevision, 'baserevision');
// Tool uses default unamanged files list when malformed.
// Tool uses default unmanaged files list when malformed.
expect(projectMetadata.migrateConfig.unmanagedFiles[0], 'lib/main.dart');
expect(logger.traceText, contains('The value of key `unmanaged_files` in .metadata was expected to be YamlList but was YamlMap'));

View File

@@ -2193,7 +2193,7 @@ import 'output-localization-file_en.dart' deferred as output-localization-file_e
});
group('select messages', () {
testWithoutContext('should auotmatically infer select placeholders that are not explicitly defined', () {
testWithoutContext('should automatically infer select placeholders that are not explicitly defined', () {
const String selectMessageWithoutPlaceholdersAttribute = '''
{
"genderSelect": "{gender, select, female {She} male {He} other {they} }",

View File

@@ -21,7 +21,7 @@ void main() {
// Full chunk.
controller.add(Uint8List.fromList(<int>[1, 2, 3, 4]));
// Multiple of full chunks, on chunk bounraries.
// Multiple of full chunks, on chunk boundaries.
controller.add(Uint8List.fromList(<int>[5, 6, 7, 8, 9, 10, 11, 12]));
// Larger than one chunk, starts on chunk boundary, ends not on chunk boundary.
controller.add(Uint8List.fromList(<int>[13, 14, 15, 16, 17, 18]));

View File

@@ -107,7 +107,7 @@ void main() {
tryToDelete(tempDir);
});
testUsingContext('analyze --suggesions --machine produces expected values', () async {
testUsingContext('analyze --suggestions --machine produces expected values', () async {
final ProcessResult result = await globals.processManager.run(<String>['flutter', 'analyze', '--suggestions', '--machine'], workingDirectory: tempDir.childDirectory('test_project').path);
expect(result.stdout is String, true);

View File

@@ -13,7 +13,7 @@ import 'test_utils.dart';
// TODO(egarciad): Migrate existing files, https://github.com/flutter/flutter/issues/54566
void main() {
test('android project using deprecated settings.gradle will still build', () async {
final String woringDirectory = fileSystem.path.join(getFlutterRoot(), 'dev', 'integration_tests', 'gradle_deprecated_settings');
final String workingDirectory = fileSystem.path.join(getFlutterRoot(), 'dev', 'integration_tests', 'gradle_deprecated_settings');
final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter');
final ProcessResult result = await processManager.run(<String>[
@@ -23,7 +23,7 @@ void main() {
'--debug',
'--target-platform', 'android-arm',
'--verbose',
], workingDirectory: woringDirectory);
], workingDirectory: workingDirectory);
printOnFailure('Output of flutter build apk:');
printOnFailure(result.stdout.toString());
@@ -32,7 +32,7 @@ void main() {
expect(result.exitCode, 0);
final String apkPath = fileSystem.path.join(
woringDirectory, 'build', 'app', 'outputs', 'flutter-apk', 'app-debug.apk');
workingDirectory, 'build', 'app', 'outputs', 'flutter-apk', 'app-debug.apk');
expect(fileSystem.file(apkPath), exists);
});
}