diff --git a/dev/devicelab/test/cocoon_test.dart b/dev/devicelab/test/cocoon_test.dart index 3611641c7e..7e27e1ddc7 100644 --- a/dev/devicelab/test/cocoon_test.dart +++ b/dev/devicelab/test/cocoon_test.dart @@ -314,7 +314,7 @@ void main() { }); test('does not upload results on non-supported branches', () async { - // Any network failure would cause the upoad to fail + // Any network failure would cause the upload to fail mockClient = MockClient((Request request) async => Response('', 500)); cocoon = Cocoon( @@ -339,7 +339,7 @@ void main() { }); test('does not update for staging test', () async { - // Any network failure would cause the upoad to fail + // Any network failure would cause the upload to fail mockClient = MockClient((Request request) async => Response('', 500)); cocoon = Cocoon( diff --git a/dev/tools/gen_keycodes/lib/keyboard_keys_code_gen.dart b/dev/tools/gen_keycodes/lib/keyboard_keys_code_gen.dart index 10c680e766..642e061513 100644 --- a/dev/tools/gen_keycodes/lib/keyboard_keys_code_gen.dart +++ b/dev/tools/gen_keycodes/lib/keyboard_keys_code_gen.dart @@ -114,8 +114,8 @@ $otherComments static const LogicalKeyboardKey $constantName = LogicalKeyboardK final StringBuffer result = StringBuffer(); for (final SynonymKeyInfo synonymInfo in synonyms.values) { for (final LogicalKeyEntry key in synonymInfo.keys) { - final LogicalKeyEntry synonnym = logicalData.entryByName(synonymInfo.name); - result.writeln(' ${key.constantName}: ${synonnym.constantName},'); + final LogicalKeyEntry synonym = logicalData.entryByName(synonymInfo.name); + result.writeln(' ${key.constantName}: ${synonym.constantName},'); } } return result.toString(); diff --git a/dev/tools/update_icons.dart b/dev/tools/update_icons.dart index 9f6713ebdb..bfdba6a542 100644 --- a/dev/tools/update_icons.dart +++ b/dev/tools/update_icons.dart @@ -447,7 +447,7 @@ class _Icon { flutterId = id.replaceFirst(rewritePair.key, identifierExactRewrites[rewritePair.key]!); } } - // Prefix identifer rewrites. + // Prefix identifier rewrites. for (final MapEntry rewritePair in identifierPrefixRewrites.entries) { if (id.startsWith(rewritePair.key)) { diff --git a/packages/flutter/lib/src/foundation/binding.dart b/packages/flutter/lib/src/foundation/binding.dart index 34606548b0..4b59184ca8 100644 --- a/packages/flutter/lib/src/foundation/binding.dart +++ b/packages/flutter/lib/src/foundation/binding.dart @@ -649,7 +649,7 @@ class DebugReassembleConfig { this.widgetName, }) { if (!kDebugMode) { - throw FlutterError('Cannot instaniate DebugReassembleConfig in profile or release mode.'); + throw FlutterError('Cannot instantiate DebugReassembleConfig in profile or release mode.'); } } diff --git a/packages/flutter/lib/src/material/bottom_navigation_bar.dart b/packages/flutter/lib/src/material/bottom_navigation_bar.dart index 90c82fcfce..54cef4b190 100644 --- a/packages/flutter/lib/src/material/bottom_navigation_bar.dart +++ b/packages/flutter/lib/src/material/bottom_navigation_bar.dart @@ -357,7 +357,7 @@ class BottomNavigationBar extends StatefulWidget { /// bottom navigation bar defaults for an entire application. /// * [BottomNavigationBarTheme] - which can be used to specify /// bottom navigation bar defaults for a widget subtree. - /// * [MediaQuery.of] - which can be used to determing the current + /// * [MediaQuery.of] - which can be used to determine the current /// orientation. final BottomNavigationBarLandscapeLayout? landscapeLayout; diff --git a/packages/flutter/lib/src/material/stepper.dart b/packages/flutter/lib/src/material/stepper.dart index 1b84ae04a1..f6723365b6 100755 --- a/packages/flutter/lib/src/material/stepper.dart +++ b/packages/flutter/lib/src/material/stepper.dart @@ -56,7 +56,7 @@ enum StepperType { } /// Container for all the information necessary to build a Stepper widget's -/// foward and backward controls for any given step. +/// forward and backward controls for any given step. /// /// Used by [Stepper.controlsBuilder]. @immutable diff --git a/packages/flutter/lib/src/rendering/layer.dart b/packages/flutter/lib/src/rendering/layer.dart index 08a6c29389..085ee1bfbb 100644 --- a/packages/flutter/lib/src/rendering/layer.dart +++ b/packages/flutter/lib/src/rendering/layer.dart @@ -574,7 +574,7 @@ abstract class Layer extends AbstractNode with DiagnosticableTreeMixin { /// A handle to prevent a [Layer]'s platform graphics resources from being /// disposed. /// -/// [Layer] objects retain native resourses such as [EngineLayer]s and [Picture] +/// [Layer] objects retain native resources such as [EngineLayer]s and [Picture] /// objects. These objects may in turn retain large chunks of texture memory, /// either directly or indirectly. /// diff --git a/packages/flutter/lib/src/widgets/scroll_configuration.dart b/packages/flutter/lib/src/widgets/scroll_configuration.dart index 6f9331645c..4aec4c324f 100644 --- a/packages/flutter/lib/src/widgets/scroll_configuration.dart +++ b/packages/flutter/lib/src/widgets/scroll_configuration.dart @@ -32,7 +32,7 @@ enum AndroidOverscrollIndicator { stretch, /// Utilizes a [GlowingOverscrollIndicator], painting a glowing semi circle on - /// top of the [ScrollView] in response to oversfcrolling. + /// top of the [ScrollView] in response to overscrolling. glow, } diff --git a/packages/flutter/test/painting/image_stream_test.dart b/packages/flutter/test/painting/image_stream_test.dart index 59dd444923..05cae5847d 100644 --- a/packages/flutter/test/painting/image_stream_test.dart +++ b/packages/flutter/test/painting/image_stream_test.dart @@ -422,7 +422,7 @@ void main() { await tester.pump(const Duration(milliseconds: 200)); }); - testWidgets('animation doesnt repeat more than specified', (WidgetTester tester) async { + testWidgets("animation doesn't repeat more than specified", (WidgetTester tester) async { final MockCodec mockCodec = MockCodec(); mockCodec.frameCount = 2; mockCodec.repetitionCount = 0; diff --git a/packages/flutter/test/services/raw_keyboard_test.dart b/packages/flutter/test/services/raw_keyboard_test.dart index 2a12f46be5..bb1ca4abe3 100644 --- a/packages/flutter/test/services/raw_keyboard_test.dart +++ b/packages/flutter/test/services/raw_keyboard_test.dart @@ -1899,7 +1899,7 @@ void main() { expect( data.isModifierPressed(key, side: modifierTests[modifier]!.side), isFalse, - reason: "${isLeft ? 'left' : 'right'} $key should not be pressed with metaState $modifier, wwhen key is ${isDown ? 'down' : 'up'}, but is.", + reason: "${isLeft ? 'left' : 'right'} $key should not be pressed with metaState $modifier, when key is ${isDown ? 'down' : 'up'}, but is.", ); } } @@ -2131,7 +2131,7 @@ void main() { expect( data.isModifierPressed(key, side: modifierTests[modifier]!.side), isFalse, - reason: "${isLeft ? 'left' : 'right'} $key should not be pressed with metaState $modifier, wwhen key is ${isDown ? 'down' : 'up'}, but is.", + reason: "${isLeft ? 'left' : 'right'} $key should not be pressed with metaState $modifier, when key is ${isDown ? 'down' : 'up'}, but is.", ); } } diff --git a/packages/flutter/test/widgets/draggable_test.dart b/packages/flutter/test/widgets/draggable_test.dart index 63df639624..23b1b7561a 100644 --- a/packages/flutter/test/widgets/draggable_test.dart +++ b/packages/flutter/test/widgets/draggable_test.dart @@ -1837,7 +1837,7 @@ void main() { expect(onDragCompletedCalled, isTrue); }); - testWidgets('Drag and drop - allow pass thru of unaccepted data test', (WidgetTester tester) async { + testWidgets('Drag and drop - allow pass through of unaccepted data test', (WidgetTester tester) async { final List acceptedInts = []; final List> acceptedIntsDetails = >[]; final List acceptedDoubles = []; @@ -1971,7 +1971,7 @@ void main() { expect(find.text('DoubleDragging'), findsNothing); }); - testWidgets('Drag and drop - allow pass thru of unaccepted data twice test', (WidgetTester tester) async { + testWidgets('Drag and drop - allow pass through of unaccepted data twice test', (WidgetTester tester) async { final List acceptedDragTargetDatas = []; final List> acceptedDragTargetDataDetails = >[]; final List acceptedExtendedDragTargetDatas = []; diff --git a/packages/flutter/test/widgets/framework_test.dart b/packages/flutter/test/widgets/framework_test.dart index 2bf379cd67..ba4c9e8a23 100644 --- a/packages/flutter/test/widgets/framework_test.dart +++ b/packages/flutter/test/widgets/framework_test.dart @@ -1621,7 +1621,7 @@ void main() { expect(states, ['deactivate', 'dispose']); }); - testWidgets('RenderObjectElement.unmount dispsoes of its renderObject', (WidgetTester tester) async { + testWidgets('RenderObjectElement.unmount disposes of its renderObject', (WidgetTester tester) async { await tester.pumpWidget(const Placeholder()); final RenderObjectElement element = tester.allElements.whereType().first; final RenderObject renderObject = element.renderObject; diff --git a/packages/flutter_driver/test/src/real_tests/flutter_driver_test.dart b/packages/flutter_driver/test/src/real_tests/flutter_driver_test.dart index d031085024..8d8f8c683b 100644 --- a/packages/flutter_driver/test/src/real_tests/flutter_driver_test.dart +++ b/packages/flutter_driver/test/src/real_tests/flutter_driver_test.dart @@ -974,7 +974,7 @@ void main() { expect(driver.waitUntilFirstFrameRasterized(), throwsUnimplementedError); }); - test('appIsoloate', () async { + test('appIsolate', () async { expect(() => driver.appIsolate.extensionRPCs, throwsUnsupportedError); }); diff --git a/packages/flutter_test/lib/src/widget_tester.dart b/packages/flutter_test/lib/src/widget_tester.dart index 91a88f2136..2e8c0d92b7 100644 --- a/packages/flutter_test/lib/src/widget_tester.dart +++ b/packages/flutter_test/lib/src/widget_tester.dart @@ -59,7 +59,7 @@ export 'package:test_api/test_api.dart' hide /// Signature for callback to [testWidgets] and [benchmarkWidgets]. typedef WidgetTesterCallback = Future Function(WidgetTester widgetTester); -// Return the last element that satisifes `test`, or return null if not found. +// Return the last element that satisfies `test`, or return null if not found. E? _lastWhereOrNull(Iterable list, bool Function(E) test) { late E result; bool foundMatching = false; diff --git a/packages/flutter_tools/doc/daemon.md b/packages/flutter_tools/doc/daemon.md index a96494cd6f..b3f6613ed7 100644 --- a/packages/flutter_tools/doc/daemon.md +++ b/packages/flutter_tools/doc/daemon.md @@ -187,7 +187,7 @@ Return a list of all connected devices. The `params` field will be a List; each `category` is a string description of the kind of workflow the device supports. The current categories are "mobile", "web" and "desktop", or null if none. `platformType` is a string description of the platform sub-folder the device -supports. The current catgetories are "android", "ios", "linux", "macos", +supports. The current categories are "android", "ios", "linux", "macos", "fuchsia", "windows", and "web". These are kept in sync with the response from `daemon.getSupportedPlatforms`. `ephemeral` is a boolean which indicates where the device needs to be manually connected to a development machine. For example, a physical Android device is ephemeral, but the "web" device (that is always present) is not. diff --git a/packages/flutter_tools/lib/src/base/config.dart b/packages/flutter_tools/lib/src/base/config.dart index 31b736ad78..57d6455756 100644 --- a/packages/flutter_tools/lib/src/base/config.dart +++ b/packages/flutter_tools/lib/src/base/config.dart @@ -43,7 +43,7 @@ class Config { ); } - /// Similiar to the default config constructor, but with some different + /// Similar to the default config constructor, but with some different /// behaviours: /// - will not delete the config if it's not valid JSON /// - will log but also rethrow any exceptions while loading the JSON, so diff --git a/packages/flutter_tools/lib/src/xcode_project.dart b/packages/flutter_tools/lib/src/xcode_project.dart index dd48324634..c39349002f 100644 --- a/packages/flutter_tools/lib/src/xcode_project.dart +++ b/packages/flutter_tools/lib/src/xcode_project.dart @@ -328,8 +328,8 @@ class IosProject extends XcodeBasedProject { if (fromPlist != null && fromPlist.contains(r'$')) { final Map? allBuildSettings = await buildSettingsForBuildInfo(buildInfo); if (allBuildSettings != null) { - final String substituedVariable = substituteXcodeVariables(fromPlist, allBuildSettings); - if (substituedVariable == bundleIdentifier) { + final String substitutedVariable = substituteXcodeVariables(fromPlist, allBuildSettings); + if (substitutedVariable == bundleIdentifier) { return true; } } diff --git a/packages/flutter_tools/static/custom-devices.schema.json b/packages/flutter_tools/static/custom-devices.schema.json index 4b604c0f96..8bac5c0bb1 100644 --- a/packages/flutter_tools/static/custom-devices.schema.json +++ b/packages/flutter_tools/static/custom-devices.schema.json @@ -102,7 +102,7 @@ ] }, "forwardPort": { - "description": "The command to be invoked to forward a specific device port to a port on the host device. The host port is available via ${hostPort} and the device port via ${devicePort}. On success, the command should stay running for the duration of the forwarding. The command will be terminated using SIGTERM when the forwarding should be stopped. When using ssh, make sure ssh quits when the forwarding fails since thats not the default behaviour.", + "description": "The command to be invoked to forward a specific device port to a port on the host device. The host port is available via ${hostPort} and the device port via ${devicePort}. On success, the command should stay running for the duration of the forwarding. The command will be terminated using SIGTERM when the forwarding should be stopped. When using ssh, make sure ssh quits when the forwarding fails since that's not the default behaviour.", "type": ["array", "null"], "items": { "type": "string" diff --git a/packages/flutter_tools/test/commands.shard/hermetic/pub_get_test.dart b/packages/flutter_tools/test/commands.shard/hermetic/pub_get_test.dart index 79649d1a14..073470428c 100644 --- a/packages/flutter_tools/test/commands.shard/hermetic/pub_get_test.dart +++ b/packages/flutter_tools/test/commands.shard/hermetic/pub_get_test.dart @@ -77,7 +77,7 @@ void main() { FileSystem: () => fileSystem, }); - testUsingContext('pub get skips example directory if it dooes not contain a pubspec.yaml', () async { + testUsingContext("pub get skips example directory if it doesn't contain a pubspec.yaml", () async { fileSystem.currentDirectory.childFile('pubspec.yaml').createSync(); fileSystem.currentDirectory.childDirectory('example').createSync(recursive: true); diff --git a/packages/flutter_tools/test/general.shard/base/error_handling_io_test.dart b/packages/flutter_tools/test/general.shard/base/error_handling_io_test.dart index 652499d008..84c515f3c1 100644 --- a/packages/flutter_tools/test/general.shard/base/error_handling_io_test.dart +++ b/packages/flutter_tools/test/general.shard/base/error_handling_io_test.dart @@ -829,7 +829,7 @@ void main() { const int kUserMappedSectionOpened = 1224; const int kUserPermissionDenied = 5; - testWithoutContext('when PackageProcess throws an exception containg non-executable bits', () { + testWithoutContext('when PackageProcess throws an exception containing non-executable bits', () { final FakeProcessManager fakeProcessManager = FakeProcessManager.list([ const FakeCommand(command: ['foo'], exception: ProcessPackageExecutableNotFoundException('', candidates: ['not-empty'])), const FakeCommand(command: ['foo'], exception: ProcessPackageExecutableNotFoundException('', candidates: ['not-empty'])), diff --git a/packages/flutter_tools/test/general.shard/build_info_test.dart b/packages/flutter_tools/test/general.shard/build_info_test.dart index fb19d501c6..ebfe7fbaf3 100644 --- a/packages/flutter_tools/test/general.shard/build_info_test.dart +++ b/packages/flutter_tools/test/general.shard/build_info_test.dart @@ -187,7 +187,7 @@ void main() { ]); }); - testWithoutContext('encodeDartDefines encodes define values with base64 encoded compnents', () { + testWithoutContext('encodeDartDefines encodes define values with base64 encoded components', () { expect(encodeDartDefines(['"hello"']), 'ImhlbGxvIg=='); expect(encodeDartDefines(['https://www.google.com']), 'aHR0cHM6Ly93d3cuZ29vZ2xlLmNvbQ=='); expect(encodeDartDefines(['2,3,4', '5']), 'MiwzLDQ=,NQ=='); diff --git a/packages/flutter_tools/test/general.shard/build_system/build_system_test.dart b/packages/flutter_tools/test/general.shard/build_system/build_system_test.dart index a03a018822..0d62bc1de7 100644 --- a/packages/flutter_tools/test/general.shard/build_system/build_system_test.dart +++ b/packages/flutter_tools/test/general.shard/build_system/build_system_test.dart @@ -597,7 +597,7 @@ void main() { expect(testEnvironmentProfile.outputDir.childFile('.last_build_id').readAsStringSync(), 'c20b3747fb2aa148cc4fd39bfbbd894f'); - // Verify debug output removeds + // Verify debug output removed expect(fileSystem.file('output/debug'), isNot(exists)); expect(fileSystem.file('output/release'), exists); }); diff --git a/packages/flutter_tools/test/general.shard/desktop_device_test.dart b/packages/flutter_tools/test/general.shard/desktop_device_test.dart index 33418bde28..17a33c598f 100644 --- a/packages/flutter_tools/test/general.shard/desktop_device_test.dart +++ b/packages/flutter_tools/test/general.shard/desktop_device_test.dart @@ -275,7 +275,7 @@ void main() { expect(result.started, true); }); - testWithoutContext('Device logger captues all output', () async { + testWithoutContext('Device logger captures all output', () async { final Completer exitCompleter = Completer(); final FakeProcessManager processManager = FakeProcessManager.list([ FakeCommand( diff --git a/packages/flutter_tools/test/general.shard/intellij/intellij_validator_test.dart b/packages/flutter_tools/test/general.shard/intellij/intellij_validator_test.dart index 3cf6171ee3..675ae2d193 100644 --- a/packages/flutter_tools/test/general.shard/intellij/intellij_validator_test.dart +++ b/packages/flutter_tools/test/general.shard/intellij/intellij_validator_test.dart @@ -314,9 +314,9 @@ void main() { expect(ce.title, 'IntelliJ IDEA Community Edition'); expect(ce.installPath, ceRandomLocation); - final IntelliJValidatorOnMac utlimate = validators.where((IntelliJValidatorOnMac validator) => validator.id == 'IntelliJIdea').single; - expect(utlimate.title, 'IntelliJ IDEA Ultimate Edition'); - expect(utlimate.installPath, ultimateRandomLocation); + final IntelliJValidatorOnMac ultimate = validators.where((IntelliJValidatorOnMac validator) => validator.id == 'IntelliJIdea').single; + expect(ultimate.title, 'IntelliJ IDEA Ultimate Edition'); + expect(ultimate.installPath, ultimateRandomLocation); }); testWithoutContext('Intellij plugins path checking on mac', () async { diff --git a/packages/flutter_tools/test/general.shard/macos/macos_ipad_device_test.dart b/packages/flutter_tools/test/general.shard/macos/macos_ipad_device_test.dart index bc357e4ce1..c37981255b 100644 --- a/packages/flutter_tools/test/general.shard/macos/macos_ipad_device_test.dart +++ b/packages/flutter_tools/test/general.shard/macos/macos_ipad_device_test.dart @@ -26,7 +26,7 @@ void main() { MacOSDesignedForIPadDevices.allowDiscovery = false; }); - testWithoutContext('does not support non-macOS plaforms', () async { + testWithoutContext('does not support non-macOS platforms', () async { MacOSDesignedForIPadDevices.allowDiscovery = true; final MacOSDesignedForIPadDevices discoverer = MacOSDesignedForIPadDevices( platform: FakePlatform(operatingSystem: 'windows'), diff --git a/packages/flutter_tools/test/general.shard/web/devfs_web_test.dart b/packages/flutter_tools/test/general.shard/web/devfs_web_test.dart index 80db64bba3..52d58029b9 100644 --- a/packages/flutter_tools/test/general.shard/web/devfs_web_test.dart +++ b/packages/flutter_tools/test/general.shard/web/devfs_web_test.dart @@ -569,7 +569,7 @@ void main() { expect((await response.read().toList()).first, source.readAsBytesSync()); })); - test('serves valid etag header for asset files with non-ascii chracters', () => testbed.run(() async { + test('serves valid etag header for asset files with non-ascii characters', () => testbed.run(() async { globals.fs.file(globals.fs.path.join('build', 'flutter_assets', 'fooπ')) ..createSync(recursive: true) ..writeAsBytesSync([1, 2, 3]); diff --git a/packages/flutter_tools/test/integration.shard/build_ios_config_only_test.dart b/packages/flutter_tools/test/integration.shard/build_ios_config_only_test.dart index cb9dc523ac..61957cf538 100644 --- a/packages/flutter_tools/test/integration.shard/build_ios_config_only_test.dart +++ b/packages/flutter_tools/test/integration.shard/build_ios_config_only_test.dart @@ -13,14 +13,14 @@ import 'test_utils.dart'; void main() { test('flutter build ios --config only updates generated xcconfig file without performing build', () async { - final String woringDirectory = fileSystem.path.join(getFlutterRoot(), 'examples', 'hello_world'); + final String workingDirectory = fileSystem.path.join(getFlutterRoot(), 'examples', 'hello_world'); final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter'); await processManager.run([ flutterBin, ...getLocalEngineArguments(), 'clean', - ], workingDirectory: woringDirectory); + ], workingDirectory: workingDirectory); final ProcessResult result = await processManager.run([ flutterBin, ...getLocalEngineArguments(), @@ -31,7 +31,7 @@ void main() { '--obfuscate', '--split-debug-info=info', '--no-codesign', - ], workingDirectory: woringDirectory); + ], workingDirectory: workingDirectory); print(result.stdout); print(result.stderr); @@ -39,7 +39,7 @@ void main() { expect(result.exitCode, 0); final File generatedConfig = fileSystem.file( - fileSystem.path.join(woringDirectory, 'ios', 'Flutter', 'Generated.xcconfig')); + fileSystem.path.join(workingDirectory, 'ios', 'Flutter', 'Generated.xcconfig')); // Config is updated if command succeeded. expect(generatedConfig, exists); @@ -47,7 +47,7 @@ void main() { // file that only exists if app was fully built. final File frameworkPlist = fileSystem.file( - fileSystem.path.join(woringDirectory, 'build', 'ios', 'iphoneos', 'Runner.app', 'AppFrameworkInfo.plist')); + fileSystem.path.join(workingDirectory, 'build', 'ios', 'iphoneos', 'Runner.app', 'AppFrameworkInfo.plist')); expect(frameworkPlist, isNot(exists)); }, skip: !platform.isMacOS); // [intended] iOS builds only work on macos. diff --git a/packages/integration_test/ios/Classes/IntegrationTestIosTest.h b/packages/integration_test/ios/Classes/IntegrationTestIosTest.h index 333b0ece93..cac3be43fd 100644 --- a/packages/integration_test/ios/Classes/IntegrationTestIosTest.h +++ b/packages/integration_test/ios/Classes/IntegrationTestIosTest.h @@ -13,7 +13,7 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)initWithScreenshotDelegate:(nullable id)delegate NS_DESIGNATED_INITIALIZER; /** - * Initate dart tests and wait for results. @c testResult will be set to a string describing the results. + * Initiate dart tests and wait for results. @c testResult will be set to a string describing the results. * * @return @c YES if all tests succeeded. */