diff --git a/dev/benchmarks/complex_layout/test_driver/semantics_perf_test.dart b/dev/benchmarks/complex_layout/test_driver/semantics_perf_test.dart index a9cef15708..1609b90a8a 100644 --- a/dev/benchmarks/complex_layout/test_driver/semantics_perf_test.dart +++ b/dev/benchmarks/complex_layout/test_driver/semantics_perf_test.dart @@ -23,7 +23,7 @@ void main() { driver.close(); }); - test('inital tree creation', () async { + test('initial tree creation', () async { // Let app become fully idle. await Future.delayed(const Duration(seconds: 2)); diff --git a/dev/benchmarks/macrobenchmarks/lib/src/web/bench_dynamic_clip_on_static_picture.dart b/dev/benchmarks/macrobenchmarks/lib/src/web/bench_dynamic_clip_on_static_picture.dart index 36b921b4f9..b517f819d3 100644 --- a/dev/benchmarks/macrobenchmarks/lib/src/web/bench_dynamic_clip_on_static_picture.dart +++ b/dev/benchmarks/macrobenchmarks/lib/src/web/bench_dynamic_clip_on_static_picture.dart @@ -35,7 +35,7 @@ class BenchDynamicClipOnStaticPicture extends SceneBuilderRecorder { BenchDynamicClipOnStaticPicture() : super(name: benchmarkName) { // If the scrollable extent is too small, the benchmark may end up // scrolling the picture out of the clip area entirely, resulting in - // bogus metric vaules. + // bogus metric values. const double maxScrollExtent = kTotalSampleCount * kScrollDelta; const double pictureHeight = kRows * kRowHeight; if (maxScrollExtent > pictureHeight) { diff --git a/dev/benchmarks/macrobenchmarks/lib/web_benchmarks.dart b/dev/benchmarks/macrobenchmarks/lib/web_benchmarks.dart index dedcfee9de..727a77efbc 100644 --- a/dev/benchmarks/macrobenchmarks/lib/web_benchmarks.dart +++ b/dev/benchmarks/macrobenchmarks/lib/web_benchmarks.dart @@ -245,7 +245,7 @@ class TimeseriesVisualization { final AnnotatedSample sample = _stats.samples[i]; if (sample.isWarmUpValue) { - // Put gray background behing warm-up samples. + // Put gray background behind warm-up samples. _ctx.fillStyle = 'rgba(200,200,200,1)'; _ctx.fillRect(xOffset, 0, barWidth, _normalized(_maxValueChartRange)); } diff --git a/dev/benchmarks/test_apps/stocks/lib/i18n/header.txt b/dev/benchmarks/test_apps/stocks/lib/i18n/header.txt index eb15007557..68d412844d 100644 --- a/dev/benchmarks/test_apps/stocks/lib/i18n/header.txt +++ b/dev/benchmarks/test_apps/stocks/lib/i18n/header.txt @@ -2,4 +2,4 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// THE FOLLLOWING FILES WERE GENERATED BY `flutter gen-l10n`. +// THE FOLLOWING FILES WERE GENERATED BY `flutter gen-l10n`. diff --git a/dev/benchmarks/test_apps/stocks/lib/i18n/stock_strings.dart b/dev/benchmarks/test_apps/stocks/lib/i18n/stock_strings.dart index 2c8d4f8608..fc38e8f4b7 100644 --- a/dev/benchmarks/test_apps/stocks/lib/i18n/stock_strings.dart +++ b/dev/benchmarks/test_apps/stocks/lib/i18n/stock_strings.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// THE FOLLLOWING FILES WERE GENERATED BY `flutter gen-l10n`. +// THE FOLLOWING FILES WERE GENERATED BY `flutter gen-l10n`. import 'dart:async'; diff --git a/dev/benchmarks/test_apps/stocks/lib/i18n/stock_strings_en.dart b/dev/benchmarks/test_apps/stocks/lib/i18n/stock_strings_en.dart index cefffaf698..04d5bd8b0e 100644 --- a/dev/benchmarks/test_apps/stocks/lib/i18n/stock_strings_en.dart +++ b/dev/benchmarks/test_apps/stocks/lib/i18n/stock_strings_en.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// THE FOLLLOWING FILES WERE GENERATED BY `flutter gen-l10n`. +// THE FOLLOWING FILES WERE GENERATED BY `flutter gen-l10n`. diff --git a/dev/benchmarks/test_apps/stocks/lib/i18n/stock_strings_es.dart b/dev/benchmarks/test_apps/stocks/lib/i18n/stock_strings_es.dart index 5a95fd0346..da1db9a250 100644 --- a/dev/benchmarks/test_apps/stocks/lib/i18n/stock_strings_es.dart +++ b/dev/benchmarks/test_apps/stocks/lib/i18n/stock_strings_es.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// THE FOLLLOWING FILES WERE GENERATED BY `flutter gen-l10n`. +// THE FOLLOWING FILES WERE GENERATED BY `flutter gen-l10n`. diff --git a/dev/devicelab/lib/framework/cocoon.dart b/dev/devicelab/lib/framework/cocoon.dart index d4959c29bc..c242ad2cbe 100644 --- a/dev/devicelab/lib/framework/cocoon.dart +++ b/dev/devicelab/lib/framework/cocoon.dart @@ -73,7 +73,7 @@ class Cocoon { /// Flutter infrastructure's workflow is: /// 1. Run DeviceLab test, writing results to a known path /// 2. Request service account token from luci auth (valid for at least 3 minutes) - /// 3. Upload results from (1) to Cocooon + /// 3. Upload results from (1) to Cocoon Future sendResultsPath(String resultsPath) async { final File resultFile = fs.file(resultsPath); final Map resultsJson = json.decode(await resultFile.readAsString()) as Map; diff --git a/dev/devicelab/lib/framework/framework.dart b/dev/devicelab/lib/framework/framework.dart index 6472769c99..9f3ae67500 100644 --- a/dev/devicelab/lib/framework/framework.dart +++ b/dev/devicelab/lib/framework/framework.dart @@ -25,7 +25,7 @@ final Set noRebootForbidList = { /// The maximum number of test runs before a device must be rebooted. /// /// This number was chosen arbitrarily. -const int maxiumRuns = 30; +const int maximumRuns = 30; /// Represents a unit of work performed in the CI environment that can /// succeed, fail and be retried independently of others. @@ -190,7 +190,7 @@ class _TaskRunner { } else { runCount = 0; } - if (runCount < maxiumRuns) { + if (runCount < maximumRuns) { rebootFile ..createSync() ..writeAsStringSync((runCount + 1).toString()); diff --git a/dev/devicelab/lib/tasks/perf_tests.dart b/dev/devicelab/lib/tasks/perf_tests.dart index da4fb9a2a0..f7a069350a 100644 --- a/dev/devicelab/lib/tasks/perf_tests.dart +++ b/dev/devicelab/lib/tasks/perf_tests.dart @@ -466,7 +466,7 @@ TaskFunction createFramePolicyIntegrationTest() { ) as Map; final Map fullLiveData = data['fullyLive'] as Map; final Map benchmarkLiveData = data['benchmarkLive'] as Map; - final Map dataFormated = { + final Map dataFormatted = { 'average_delay_fullyLive_millis': fullLiveData['average_delay_millis'], 'average_delay_benchmarkLive_millis': @@ -478,8 +478,8 @@ TaskFunction createFramePolicyIntegrationTest() { }; return TaskResult.success( - dataFormated, - benchmarkScoreKeys: dataFormated.keys.toList(), + dataFormatted, + benchmarkScoreKeys: dataFormatted.keys.toList(), ); }); }; diff --git a/dev/devicelab/lib/tasks/web_benchmarks.dart b/dev/devicelab/lib/tasks/web_benchmarks.dart index 3423db693f..bce7f731fd 100644 --- a/dev/devicelab/lib/tasks/web_benchmarks.dart +++ b/dev/devicelab/lib/tasks/web_benchmarks.dart @@ -56,7 +56,7 @@ Future runWebBenchmark({ @required bool useCanvasKit }) async { if (benchmarkName != benchmarkIterator.current) { profileData.completeError(Exception( 'Browser returned benchmark results from a wrong benchmark.\n' - 'Requested to run bechmark ${benchmarkIterator.current}, but ' + 'Requested to run benchmark ${benchmarkIterator.current}, but ' 'got results for $benchmarkName.', )); unawaited(server.close()); diff --git a/dev/integration_tests/abstract_method_smoke_test/lib/main.dart b/dev/integration_tests/abstract_method_smoke_test/lib/main.dart index 391a2d2685..f4ba87f7ce 100644 --- a/dev/integration_tests/abstract_method_smoke_test/lib/main.dart +++ b/dev/integration_tests/abstract_method_smoke_test/lib/main.dart @@ -10,7 +10,7 @@ Future main() async { const MethodChannel channel = MethodChannel('com.example.abstract_method_smoke_test'); await channel.invokeMethod('show_keyboard'); runApp(const MyApp()); - print('Test suceeded'); + print('Test succeeded'); } class MyApp extends StatelessWidget { diff --git a/dev/integration_tests/android_embedding_v2_smoke_test/lib/main.dart b/dev/integration_tests/android_embedding_v2_smoke_test/lib/main.dart index a30336eb2f..ee40044920 100644 --- a/dev/integration_tests/android_embedding_v2_smoke_test/lib/main.dart +++ b/dev/integration_tests/android_embedding_v2_smoke_test/lib/main.dart @@ -13,5 +13,5 @@ void main() { ), ), ); - print('Test suceeded'); + print('Test succeeded'); } diff --git a/dev/integration_tests/android_semantics_testing/android/app/src/main/java/com/yourcompany/platforminteraction/MainActivity.java b/dev/integration_tests/android_semantics_testing/android/app/src/main/java/com/yourcompany/platforminteraction/MainActivity.java index c35b39da3c..325569c98e 100644 --- a/dev/integration_tests/android_semantics_testing/android/app/src/main/java/com/yourcompany/platforminteraction/MainActivity.java +++ b/dev/integration_tests/android_semantics_testing/android/app/src/main/java/com/yourcompany/platforminteraction/MainActivity.java @@ -78,7 +78,9 @@ public class MainActivity extends FlutterActivity { result.put("contentDescription", node.getContentDescription()); flags.put("isChecked", node.isChecked()); flags.put("isCheckable", node.isCheckable()); - flags.put("isDismissable", node.isDismissable()); + // This is not a typo. + // See: https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#isDismissable() + flags.put("isDismissible", node.isDismissable()); flags.put("isEditable", node.isEditable()); flags.put("isEnabled", node.isEnabled()); flags.put("isFocusable", node.isFocusable()); diff --git a/dev/integration_tests/android_semantics_testing/lib/src/constants.dart b/dev/integration_tests/android_semantics_testing/lib/src/constants.dart index a8f9091363..66ebff9b89 100644 --- a/dev/integration_tests/android_semantics_testing/lib/src/constants.dart +++ b/dev/integration_tests/android_semantics_testing/lib/src/constants.dart @@ -172,7 +172,7 @@ class AndroidSemanticsAction { } } - static const Map _kactionById = { + static const Map _kActionById = { _kFocusIndex: focus, _kClearFocusIndex: clearFocus, _kSelectIndex: select, @@ -211,6 +211,6 @@ class AndroidSemanticsAction { /// /// Returns `null` if the id is not a known Android accessibility action. static AndroidSemanticsAction deserialize(int value) { - return _kactionById[value]; + return _kActionById[value]; } } diff --git a/dev/integration_tests/flutter_gallery/lib/demo/material/bottom_app_bar_demo.dart b/dev/integration_tests/flutter_gallery/lib/demo/material/bottom_app_bar_demo.dart index 817e5d862a..8710aa0a4a 100644 --- a/dev/integration_tests/flutter_gallery/lib/demo/material/bottom_app_bar_demo.dart +++ b/dev/integration_tests/flutter_gallery/lib/demo/material/bottom_app_bar_demo.dart @@ -15,8 +15,8 @@ class BottomAppBarDemo extends StatefulWidget { State createState() => _BottomAppBarDemoState(); } -// Flutter generally frowns upon abbrevation however this class uses two -// abbrevations extensively: "fab" for floating action button, and "bab" +// Flutter generally frowns upon abbreviation however this class uses two +// abbreviations extensively: "fab" for floating action button, and "bab" // for bottom application bar. class _BottomAppBarDemoState extends State { diff --git a/dev/integration_tests/flutter_gallery/lib/gallery/icons.dart b/dev/integration_tests/flutter_gallery/lib/gallery/icons.dart index 22edde0448..496c960664 100644 --- a/dev/integration_tests/flutter_gallery/lib/gallery/icons.dart +++ b/dev/integration_tests/flutter_gallery/lib/gallery/icons.dart @@ -5,7 +5,7 @@ import 'package:flutter/material.dart'; class GalleryIcons { - // This class is not meant to be instatiated or extended; this constructor + // This class is not meant to be instantiated or extended; this constructor // prevents instantiation and extension. GalleryIcons._(); diff --git a/dev/integration_tests/flutter_gallery/test_driver/run_demos.dart b/dev/integration_tests/flutter_gallery/test_driver/run_demos.dart index 45df376f6e..608d5afe47 100644 --- a/dev/integration_tests/flutter_gallery/test_driver/run_demos.dart +++ b/dev/integration_tests/flutter_gallery/test_driver/run_demos.dart @@ -7,7 +7,7 @@ import 'package:flutter/foundation.dart'; import 'package:flutter_gallery/demo_lists.dart'; import 'package:flutter_test/flutter_test.dart'; -/// The demos we don't run as part of the integraiton test. +/// The demos we don't run as part of the integration test. /// /// Demo names are formatted as 'DEMO_NAME@DEMO_CATEGORY' (see /// `demo_lists.dart` for more examples). diff --git a/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_test.dart b/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_test.dart index f20c1f20ff..104d8581c5 100644 --- a/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_test.dart +++ b/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_test.dart @@ -165,7 +165,7 @@ void main([List args = const []]) { // Wait for the first frame to be rasterized. await driver.waitUntilFirstFrameRasterized(); if (withSemantics) { - print('Enabeling semantics...'); + print('Enabling semantics...'); await driver.setSemantics(true); } diff --git a/dev/integration_tests/ios_host_app/Host/AppDelegate.m b/dev/integration_tests/ios_host_app/Host/AppDelegate.m index ed1389f87a..04fe32982a 100644 --- a/dev/integration_tests/ios_host_app/Host/AppDelegate.m +++ b/dev/integration_tests/ios_host_app/Host/AppDelegate.m @@ -22,7 +22,7 @@ static NSString *_kReloadChannelName = @"reload"; return _engine; } -- (FlutterBasicMessageChannel *)reloadMessabeChannel { +- (FlutterBasicMessageChannel *)reloadMessageChannel { return _reloadMessageChannel; } diff --git a/dev/integration_tests/web_e2e_tests/test_driver/text_editing_integration.dart b/dev/integration_tests/web_e2e_tests/test_driver/text_editing_integration.dart index b1cc580084..9111969c6d 100644 --- a/dev/integration_tests/web_e2e_tests/test_driver/text_editing_integration.dart +++ b/dev/integration_tests/web_e2e_tests/test_driver/text_editing_integration.dart @@ -85,8 +85,8 @@ void main() { expect(text.data, 'no-enter'); // Focus on a TextFormField. - final Finder textFormFielsFinder = find.byKey(const Key('input2')); - expect(textFormFielsFinder, findsOneWidget); + final Finder textFormFieldsFinder = find.byKey(const Key('input2')); + expect(textFormFieldsFinder, findsOneWidget); await tester.tap(find.byKey(const Key('input2'))); // // Press Tab. This should trigger `onFieldSubmitted` of TextField. diff --git a/dev/tools/bin/generate_gradle_lockfiles.dart b/dev/tools/bin/generate_gradle_lockfiles.dart index e642621343..70ee7750e6 100644 --- a/dev/tools/bin/generate_gradle_lockfiles.dart +++ b/dev/tools/bin/generate_gradle_lockfiles.dart @@ -75,7 +75,7 @@ void main(List arguments) { // Verify that the Gradlew wrapper exists. final File gradleWrapper = androidDirectory.childFile('gradlew'); // Generate Gradle wrapper if it doesn't exists. - // This logic is embededed within the Flutter tool. + // This logic is embedded within the Flutter tool. // To generate the wrapper, build a flavor that doesn't exist. if (!gradleWrapper.existsSync()) { Process.runSync( diff --git a/dev/tools/gen_keycodes/data/keyboard_maps.tmpl b/dev/tools/gen_keycodes/data/keyboard_maps.tmpl index 4331d1cec0..c4ce2fc9ed 100644 --- a/dev/tools/gen_keycodes/data/keyboard_maps.tmpl +++ b/dev/tools/gen_keycodes/data/keyboard_maps.tmpl @@ -140,7 +140,7 @@ const Map kWebNumPadMap = > kWebLocationMap = >{ @@@WEB_LOCATION_MAP@@@ diff --git a/examples/layers/raw/touch_input.dart b/examples/layers/raw/touch_input.dart index 7cb26a3bea..58c861def5 100644 --- a/examples/layers/raw/touch_input.dart +++ b/examples/layers/raw/touch_input.dart @@ -41,7 +41,7 @@ ui.Picture paint(ui.Rect paintBounds) { ui.Scene composite(ui.Picture picture, ui.Rect paintBounds) { // The device pixel ratio gives an approximate ratio of the size of pixels on // the device's screen to "normal" sized pixels. We commonly work in logical - // pixels, which are then scalled by the device pixel ratio before being drawn + // pixels, which are then scaled by the device pixel ratio before being drawn // on the screen. final double devicePixelRatio = ui.window.devicePixelRatio; diff --git a/packages/flutter/lib/src/animation/curves.dart b/packages/flutter/lib/src/animation/curves.dart index 21e279b4e7..dceea75787 100644 --- a/packages/flutter/lib/src/animation/curves.dart +++ b/packages/flutter/lib/src/animation/curves.dart @@ -1401,7 +1401,7 @@ class ElasticInOutCurve extends Curve { /// * [Curve], the interface implemented by the constants available from the /// [Curves] class. class Curves { - // This class is not meant to be instatiated or extended; this constructor + // This class is not meant to be instantiated or extended; this constructor // prevents instantiation and extension. Curves._(); diff --git a/packages/flutter/lib/src/cupertino/desktop_text_selection.dart b/packages/flutter/lib/src/cupertino/desktop_text_selection.dart index 331ef023f7..5971492f84 100644 --- a/packages/flutter/lib/src/cupertino/desktop_text_selection.dart +++ b/packages/flutter/lib/src/cupertino/desktop_text_selection.dart @@ -230,7 +230,7 @@ class _CupertinoDesktopTextSelectionControlsToolbarState extends State<_Cupertin /// Typically displays buttons for text manipulation, e.g. copying and pasting /// text. /// -/// Tries to position itself as closesly as possible to [anchor] while remaining +/// Tries to position itself as closely as possible to [anchor] while remaining /// fully on-screen. /// /// See also: diff --git a/packages/flutter/lib/src/cupertino/dialog.dart b/packages/flutter/lib/src/cupertino/dialog.dart index 2621135114..0f0dd48504 100644 --- a/packages/flutter/lib/src/cupertino/dialog.dart +++ b/packages/flutter/lib/src/cupertino/dialog.dart @@ -890,7 +890,7 @@ class _CupertinoDialogRenderWidget extends RenderObjectWidget { class _CupertinoDialogRenderElement extends RenderObjectElement { _CupertinoDialogRenderElement(_CupertinoDialogRenderWidget widget, {this.allowMoveRenderObjectChild = false}) : super(widget); - // Whether to allow overriden method moveRenderObjectChild call or default to super. + // Whether to allow overridden method moveRenderObjectChild call or default to super. // CupertinoActionSheet should default to [super] but CupertinoAlertDialog not. final bool allowMoveRenderObjectChild; diff --git a/packages/flutter/lib/src/cupertino/form_section.dart b/packages/flutter/lib/src/cupertino/form_section.dart index 44e9246c4f..44e4d1e431 100644 --- a/packages/flutter/lib/src/cupertino/form_section.dart +++ b/packages/flutter/lib/src/cupertino/form_section.dart @@ -66,7 +66,7 @@ enum _CupertinoFormSectionType { base, insetGrouped } /// /// {@macro flutter.material.Material.clipBehavior} class CupertinoFormSection extends StatelessWidget { - /// Creates a section that mimicks standard iOS forms. + /// Creates a section that mimics standard iOS forms. /// /// The base constructor for [CupertinoFormSection] constructs an /// edge-to-edge style section which includes an iOS-style header, @@ -111,7 +111,7 @@ class CupertinoFormSection extends StatelessWidget { assert(children.length > 0), super(key: key); - /// Creates a section that mimicks standard "Inset Grouped" iOS forms. + /// Creates a section that mimics standard "Inset Grouped" iOS forms. /// /// The [CupertinoFormSection.insetGrouped] constructor creates a round-edged and /// padded section that is commonly seen in notched-displays like iPhone X and @@ -217,7 +217,7 @@ class CupertinoFormSection extends StatelessWidget { // Short divider is used between rows. // The value of the starting inset (15.0) is determined using SwiftUI's Form - // seperators in the iOS 14.2 SDK. + // separators in the iOS 14.2 SDK. final Widget shortDivider = Container( margin: const EdgeInsetsDirectional.only(start: 15.0), color: dividerColor, diff --git a/packages/flutter/lib/src/cupertino/picker.dart b/packages/flutter/lib/src/cupertino/picker.dart index 3233842ac1..c6516ed1b0 100644 --- a/packages/flutter/lib/src/cupertino/picker.dart +++ b/packages/flutter/lib/src/cupertino/picker.dart @@ -433,7 +433,7 @@ class _RenderCupertinoPickerSemantics extends RenderProxyBox { late FixedExtentScrollController _controller; set controller(FixedExtentScrollController value) => _updateController(_controller, value); - // This method exists to allow controller to be non-null. It is only called with a null oldValue from construtor. + // This method exists to allow controller to be non-null. It is only called with a null oldValue from constructor. void _updateController(FixedExtentScrollController? oldValue, FixedExtentScrollController value) { if (value == oldValue) return; diff --git a/packages/flutter/lib/src/cupertino/sliding_segmented_control.dart b/packages/flutter/lib/src/cupertino/sliding_segmented_control.dart index ed1f6c566f..030cd7fc4b 100644 --- a/packages/flutter/lib/src/cupertino/sliding_segmented_control.dart +++ b/packages/flutter/lib/src/cupertino/sliding_segmented_control.dart @@ -993,7 +993,7 @@ class _RenderSegmentedControl extends RenderBox assert(rightMost > leftMost); // Ignore the horizontal position and the height of `thumbRect`, and - // calcuates them from `children`. + // calculates them from `children`. return Rect.fromLTRB( math.max(thumbRect.left, leftMost - _kThumbInsets.left), firstChildOffset.dy - _kThumbInsets.top, diff --git a/packages/flutter/lib/src/foundation/diagnostics.dart b/packages/flutter/lib/src/foundation/diagnostics.dart index 94101be84f..2a7eb5511a 100644 --- a/packages/flutter/lib/src/foundation/diagnostics.dart +++ b/packages/flutter/lib/src/foundation/diagnostics.dart @@ -2549,7 +2549,7 @@ class FlagsSummary extends DiagnosticsProperty> { // // For a non-null value, its description is its key. // - // For a null value, it is omitted unless `includeEmtpy` is true and + // For a null value, it is omitted unless `includeEmpty` is true and // [ifEntryNull] contains a corresponding description. Iterable _formattedValues() sync* { for (final MapEntry entry in value.entries) { diff --git a/packages/flutter/lib/src/foundation/platform.dart b/packages/flutter/lib/src/foundation/platform.dart index d98e0c8084..9dd1eca5a6 100644 --- a/packages/flutter/lib/src/foundation/platform.dart +++ b/packages/flutter/lib/src/foundation/platform.dart @@ -27,7 +27,7 @@ import '_platform_io.dart' /// Tests can also create specific platform tests by and adding a `variant:` /// argument to the test and using a [TargetPlatformVariant]. // -// When adding support for a new platform (e.g. Windows Phone, Rasberry Pi), +// When adding support for a new platform (e.g. Windows Phone, Raspberry Pi), // first create a new value on the [TargetPlatform] enum, then add a rule for // selecting that platform here. // diff --git a/packages/flutter/lib/src/gestures/resampler.dart b/packages/flutter/lib/src/gestures/resampler.dart index f80246a79c..e637aa1edc 100644 --- a/packages/flutter/lib/src/gestures/resampler.dart +++ b/packages/flutter/lib/src/gestures/resampler.dart @@ -240,7 +240,7 @@ class PointerEventResampler { // Add synthetics `move` or `hover` event if position has changed. // Note: Devices without `hover` events are expected to always have // `add` and `down` events with the same position and this logic will - // therefor never produce `hover` events. + // therefore never produce `hover` events. if (position != _position) { final Offset delta = position - _position; callback(_toMoveOrHoverEvent(event, position, delta, diff --git a/packages/flutter/lib/src/gestures/velocity_tracker.dart b/packages/flutter/lib/src/gestures/velocity_tracker.dart index 8a09e3f650..78577bccec 100644 --- a/packages/flutter/lib/src/gestures/velocity_tracker.dart +++ b/packages/flutter/lib/src/gestures/velocity_tracker.dart @@ -333,7 +333,7 @@ class IOSScrollViewFlingVelocityTracker extends VelocityTracker { @override VelocityEstimate getVelocityEstimate() { - // The velocity estimated using this expression is an aproximation of the + // The velocity estimated using this expression is an approximation of the // scroll velocity of an iOS scroll view at the moment the user touch was // released, not the final velocity of the iOS pan gesture recognizer // installed on the scroll view would report. Typically in an iOS scroll diff --git a/packages/flutter/lib/src/material/app_bar.dart b/packages/flutter/lib/src/material/app_bar.dart index 81b31ecc65..73acecff62 100644 --- a/packages/flutter/lib/src/material/app_bar.dart +++ b/packages/flutter/lib/src/material/app_bar.dart @@ -639,7 +639,7 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget { /// value is true. /// /// This is a temporary property. When setting it to false is no - /// longer considered a breaking change, it will be depreacted and + /// longer considered a breaking change, it will be deprecated and /// its default value will be changed to false. App developers are /// encouraged to opt into the new features by setting it to false /// and using the [foregroundColor] and [systemOverlayStyle] diff --git a/packages/flutter/lib/src/material/desktop_text_selection.dart b/packages/flutter/lib/src/material/desktop_text_selection.dart index 011d0ab6e4..e54c2e4f94 100644 --- a/packages/flutter/lib/src/material/desktop_text_selection.dart +++ b/packages/flutter/lib/src/material/desktop_text_selection.dart @@ -221,7 +221,7 @@ class _DesktopTextSelectionControlsToolbarState extends State<_DesktopTextSelect /// Typically displays buttons for text manipulation, e.g. copying and pasting /// text. /// -/// Tries to position itself as closesly as possible to [anchor] while remaining +/// Tries to position itself as closely as possible to [anchor] while remaining /// fully on-screen. /// /// See also: diff --git a/packages/flutter/lib/src/material/dialog.dart b/packages/flutter/lib/src/material/dialog.dart index 340e4e9c8e..901da98a62 100644 --- a/packages/flutter/lib/src/material/dialog.dart +++ b/packages/flutter/lib/src/material/dialog.dart @@ -230,7 +230,7 @@ class Dialog extends StatelessWidget { /// onPressed: () => showDialog( /// context: context, /// builder: (BuildContext context) => AlertDialog( -/// title: const Text('AlertDialog Tilte'), +/// title: const Text('AlertDialog Title'), /// content: const Text('AlertDialog description'), /// actions: [ /// TextButton( diff --git a/packages/flutter/lib/src/material/dropdown.dart b/packages/flutter/lib/src/material/dropdown.dart index 4fb769dcdc..9eba17990d 100644 --- a/packages/flutter/lib/src/material/dropdown.dart +++ b/packages/flutter/lib/src/material/dropdown.dart @@ -584,7 +584,7 @@ class _DropdownRoutePage extends StatelessWidget { // DropdownButton.itemHeight is specified or DropdownButton.itemHeight is null // and all of the items' intrinsic heights are less than kMinInteractiveDimension. // Otherwise the initialScrollOffset is just a rough approximation based on - // treating the items as if their heights were all equal to kMinInteractveDimension. + // treating the items as if their heights were all equal to kMinInteractiveDimension. if (route.scrollController == null) { final _MenuLimits menuLimits = route.getMenuLimits(buttonRect, constraints.maxHeight, selectedIndex); route.scrollController = ScrollController(initialScrollOffset: menuLimits.scrollOffset); diff --git a/packages/flutter/lib/src/material/ink_well.dart b/packages/flutter/lib/src/material/ink_well.dart index 84c2d51db3..821d28ec13 100644 --- a/packages/flutter/lib/src/material/ink_well.dart +++ b/packages/flutter/lib/src/material/ink_well.dart @@ -781,7 +781,7 @@ class _InkResponseState extends State<_InkResponseStateWidget> super.didUpdateWidget(oldWidget); if (_isWidgetEnabled(widget) != _isWidgetEnabled(oldWidget)) { if (enabled) { - // Don't call wigdet.onHover because many wigets, including the button + // Don't call widget.onHover because many widgets, including the button // widgets, apply setState to an ancestor context from onHover. updateHighlight(_HighlightType.hover, value: _hovering, callOnHover: false); } diff --git a/packages/flutter/lib/src/material/tabs.dart b/packages/flutter/lib/src/material/tabs.dart index 8155368a68..669df0179c 100644 --- a/packages/flutter/lib/src/material/tabs.dart +++ b/packages/flutter/lib/src/material/tabs.dart @@ -623,7 +623,7 @@ class _TabBarScrollController extends ScrollController { /// {@end-tool} /// /// {@tool dartpad --template=stateful_widget_material_ticker} -/// [TabBar] can also be implmented by using a [TabController] which provides more options +/// [TabBar] can also be implemented by using a [TabController] which provides more options /// to control the behavior of the [TabBar] and [TabBarView]. This can be used instead of /// a [DefaultTabController], demonstrated below. /// diff --git a/packages/flutter/lib/src/painting/clip.dart b/packages/flutter/lib/src/painting/clip.dart index 0934c0a269..3e1a92d4ad 100644 --- a/packages/flutter/lib/src/painting/clip.dart +++ b/packages/flutter/lib/src/painting/clip.dart @@ -39,7 +39,7 @@ abstract class ClipContext { /// /// `bounds` is the saveLayer bounds used for [Clip.antiAliasWithSaveLayer]. void clipPathAndPaint(Path path, Clip clipBehavior, Rect bounds, VoidCallback painter) { - _clipAndPaint((bool doAntiAias) => canvas.clipPath(path, doAntiAlias: doAntiAias), clipBehavior, bounds, painter); + _clipAndPaint((bool doAntiAlias) => canvas.clipPath(path, doAntiAlias: doAntiAlias), clipBehavior, bounds, painter); } /// Clip [canvas] with [Path] according to `rrect` and then paint. [canvas] is @@ -47,7 +47,7 @@ abstract class ClipContext { /// /// `bounds` is the saveLayer bounds used for [Clip.antiAliasWithSaveLayer]. void clipRRectAndPaint(RRect rrect, Clip clipBehavior, Rect bounds, VoidCallback painter) { - _clipAndPaint((bool doAntiAias) => canvas.clipRRect(rrect, doAntiAlias: doAntiAias), clipBehavior, bounds, painter); + _clipAndPaint((bool doAntiAlias) => canvas.clipRRect(rrect, doAntiAlias: doAntiAlias), clipBehavior, bounds, painter); } /// Clip [canvas] with [Path] according to `rect` and then paint. [canvas] is @@ -55,6 +55,6 @@ abstract class ClipContext { /// /// `bounds` is the saveLayer bounds used for [Clip.antiAliasWithSaveLayer]. void clipRectAndPaint(Rect rect, Clip clipBehavior, Rect bounds, VoidCallback painter) { - _clipAndPaint((bool doAntiAias) => canvas.clipRect(rect, doAntiAlias: doAntiAias), clipBehavior, bounds, painter); + _clipAndPaint((bool doAntiAlias) => canvas.clipRect(rect, doAntiAlias: doAntiAlias), clipBehavior, bounds, painter); } } diff --git a/packages/flutter/lib/src/painting/image_resolution.dart b/packages/flutter/lib/src/painting/image_resolution.dart index 6271569387..508fac7699 100644 --- a/packages/flutter/lib/src/painting/image_resolution.dart +++ b/packages/flutter/lib/src/painting/image_resolution.dart @@ -369,7 +369,7 @@ class AssetImage extends AssetBundleImageProvider { // lowest key. // - If `value` is greater than the highest key, choose the variant with // the highest key. - // - If the screen has low device pixel ratio, chosse the variant with the + // - If the screen has low device pixel ratio, choose the variant with the // lowest key higher than `value`. // - If the screen has high device pixel ratio, choose the variant with the // key nearest to `value`. diff --git a/packages/flutter/lib/src/painting/strut_style.dart b/packages/flutter/lib/src/painting/strut_style.dart index 56117f6be4..6e029713ec 100644 --- a/packages/flutter/lib/src/painting/strut_style.dart +++ b/packages/flutter/lib/src/painting/strut_style.dart @@ -474,7 +474,7 @@ class StrutStyle with Diagnosticable { final FontStyle? fontStyle; /// The additional leading to apply to the strut as a multiple of [fontSize], - /// indepdent of [height] and [leadingDistribution]. + /// independent of [height] and [leadingDistribution]. /// /// Leading is additional spacing between lines. Half of the leading is added /// to the top and the other half to the bottom of the line. This differs diff --git a/packages/flutter/lib/src/rendering/editable.dart b/packages/flutter/lib/src/rendering/editable.dart index c468eb2506..913d311db4 100644 --- a/packages/flutter/lib/src/rendering/editable.dart +++ b/packages/flutter/lib/src/rendering/editable.dart @@ -1298,7 +1298,7 @@ class RenderEditable extends RenderBox with RelayoutWhenSystemFontsChangeMixin { ); } - /// Deletes in the foward direction, from the current selection in + /// Deletes in the forward direction, from the current selection in /// [textSelectionDelegate]. /// /// This method operates on the text/selection contained in @@ -1349,7 +1349,7 @@ class RenderEditable extends RenderBox with RelayoutWhenSystemFontsChangeMixin { ); } - /// Deletes a word in the foward direction from the current selection. + /// Deletes a word in the forward direction from the current selection. /// /// If the [selection] is collapsed, deletes a word after the cursor. /// @@ -1398,7 +1398,7 @@ class RenderEditable extends RenderBox with RelayoutWhenSystemFontsChangeMixin { ); } - /// Deletes a line in the foward direction from the current selection. + /// Deletes a line in the forward direction from the current selection. /// /// If the [selection] is collapsed, deletes a line after the cursor. /// diff --git a/packages/flutter/lib/src/rendering/mouse_tracker.dart b/packages/flutter/lib/src/rendering/mouse_tracker.dart index 2038bf3ca7..965a064fe0 100644 --- a/packages/flutter/lib/src/rendering/mouse_tracker.dart +++ b/packages/flutter/lib/src/rendering/mouse_tracker.dart @@ -279,7 +279,7 @@ class MouseTracker extends ChangeNotifier { _mouseCursorMixin.handleDeviceCursorUpdate( details.device, details.triggeringEvent, - details.nextAnnotations.keys.map((MouseTrackerAnnotation annotaion) => annotaion.cursor), + details.nextAnnotations.keys.map((MouseTrackerAnnotation annotation) => annotation.cursor), ); } diff --git a/packages/flutter/lib/src/rendering/platform_view.dart b/packages/flutter/lib/src/rendering/platform_view.dart index 90a0ff5439..c34acb3ab8 100644 --- a/packages/flutter/lib/src/rendering/platform_view.dart +++ b/packages/flutter/lib/src/rendering/platform_view.dart @@ -414,7 +414,7 @@ class RenderUiKitView extends RenderBox { } // This recognizer constructs gesture recognizers from a set of gesture recognizer factories -// it was give, adds all of them to a gesture arena team with the _UiKitViewGesturrRecognizer +// it was give, adds all of them to a gesture arena team with the _UiKitViewGestureRecognizer // as the team captain. // When the team wins a gesture the recognizer notifies the engine that it should release // the touch sequence to the embedded UIView. diff --git a/packages/flutter/lib/src/rendering/proxy_box.dart b/packages/flutter/lib/src/rendering/proxy_box.dart index a6df3acbf8..503521c422 100644 --- a/packages/flutter/lib/src/rendering/proxy_box.dart +++ b/packages/flutter/lib/src/rendering/proxy_box.dart @@ -4283,7 +4283,7 @@ class RenderSemanticsAnnotations extends RenderProxyBox { markNeedsSemanticsUpdate(); } - /// Adds a semenatics tag to the semantics subtree. + /// Adds a semantics tag to the semantics subtree. SemanticsTag? get tagForChildren => _tagForChildren; SemanticsTag? _tagForChildren; set tagForChildren(SemanticsTag? value) { diff --git a/packages/flutter/lib/src/services/keyboard_maps.dart b/packages/flutter/lib/src/services/keyboard_maps.dart index c2471dbe5b..713b120b1c 100644 --- a/packages/flutter/lib/src/services/keyboard_maps.dart +++ b/packages/flutter/lib/src/services/keyboard_maps.dart @@ -2880,7 +2880,7 @@ const Map kWebNumPadMap = > kWebLocationMap = >{ '0': [LogicalKeyboardKey.digit0, null, null, LogicalKeyboardKey.numpad0], diff --git a/packages/flutter/lib/src/services/platform_channel.dart b/packages/flutter/lib/src/services/platform_channel.dart index 3be96aa9eb..d0e9db3469 100644 --- a/packages/flutter/lib/src/services/platform_channel.dart +++ b/packages/flutter/lib/src/services/platform_channel.dart @@ -131,7 +131,7 @@ class MethodChannel { /// If the result is null and `missingOk` is true, this returns null. (This is /// the behaviour of [OptionalMethodChannel.invokeMethod].) /// - /// If the result is null and `missingOk` is false, this throwsa + /// If the result is null and `missingOk` is false, this throws a /// [MissingPluginException]. (This is the behaviour of /// [MethodChannel.invokeMethod].) /// diff --git a/packages/flutter/lib/src/services/raw_keyboard_ios.dart b/packages/flutter/lib/src/services/raw_keyboard_ios.dart index 7a7eacf6b0..b3e823de77 100644 --- a/packages/flutter/lib/src/services/raw_keyboard_ios.dart +++ b/packages/flutter/lib/src/services/raw_keyboard_ios.dart @@ -116,7 +116,7 @@ class RawKeyEventDataIos extends RawKeyEventData { } // If this key is printable, generate the LogicalKeyboardKey from its - // Unicode value. Control keys such as ESC, CRTL, and SHIFT are not + // Unicode value. Control keys such as ESC, CTRL, and SHIFT are not // printable. HOME, DEL, arrow keys, and function keys are considered // modifier function keys, which generate invalid Unicode scalar values. if (keyLabel.isNotEmpty && diff --git a/packages/flutter/lib/src/services/raw_keyboard_macos.dart b/packages/flutter/lib/src/services/raw_keyboard_macos.dart index ed6b7bf3c0..5b196a404b 100644 --- a/packages/flutter/lib/src/services/raw_keyboard_macos.dart +++ b/packages/flutter/lib/src/services/raw_keyboard_macos.dart @@ -85,7 +85,7 @@ class RawKeyEventDataMacOs extends RawKeyEventData { } // If this key is printable, generate the LogicalKeyboardKey from its - // Unicode value. Control keys such as ESC, CRTL, and SHIFT are not + // Unicode value. Control keys such as ESC, CTRL, and SHIFT are not // printable. HOME, DEL, arrow keys, and function keys are considered // modifier function keys, which generate invalid Unicode scalar values. if (keyLabel.isNotEmpty && diff --git a/packages/flutter/lib/src/services/system_navigator.dart b/packages/flutter/lib/src/services/system_navigator.dart index 90bab91e13..8a6b5b9d81 100644 --- a/packages/flutter/lib/src/services/system_navigator.dart +++ b/packages/flutter/lib/src/services/system_navigator.dart @@ -51,7 +51,7 @@ class SystemNavigator { /// Selects the multiple-entry history mode. /// - /// On web, this switches the browser history model to one that tracks alll + /// On web, this switches the browser history model to one that tracks all /// updates to [routeInformationUpdated] to form a history stack. This is the /// default. /// diff --git a/packages/flutter/lib/src/widgets/editable_text.dart b/packages/flutter/lib/src/widgets/editable_text.dart index 473f097d13..95d02deb0d 100644 --- a/packages/flutter/lib/src/widgets/editable_text.dart +++ b/packages/flutter/lib/src/widgets/editable_text.dart @@ -391,7 +391,7 @@ class ToolbarOptions { /// [RenderEditable.selectWord], etc. programmatically. /// /// {@template flutter.widgets.editableText.showCaretOnScreen} -/// ## Keep the caret visisble when focused +/// ## Keep the caret visible when focused /// /// When focused, this widget will make attempts to keep the text area and its /// caret (even when [showCursor] is `false`) visible, on these occasions: @@ -1253,7 +1253,7 @@ class EditableText extends StatefulWidget { /// #### Autofill UI refuses to show up when I tap on the text field /// /// Check the device's system settings and make sure autofill is turned on, - /// and there're available credentials stored in the autofill service. + /// and there are available credentials stored in the autofill service. /// /// * iOS password autofill: Go to Settings -> Password, turn on "Autofill /// Passwords", and add new passwords for testing by pressing the top right @@ -1271,7 +1271,7 @@ class EditableText extends StatefulWidget { /// /// * Android autofill: Go to Settings -> System -> Languages & input -> /// Autofill service. Enable the autofill service of your choice, and make - /// sure there're available credentials associated with your app. + /// sure there are available credentials associated with your app. /// /// #### I called `TextInput.finishAutofillContext` but the autofill save /// prompt isn't showing diff --git a/packages/flutter/lib/src/widgets/heroes.dart b/packages/flutter/lib/src/widgets/heroes.dart index aebe0f804b..0f82222907 100644 --- a/packages/flutter/lib/src/widgets/heroes.dart +++ b/packages/flutter/lib/src/widgets/heroes.dart @@ -427,7 +427,7 @@ class _HeroState extends State { _placeholderSize = null; if (mounted) { - // Tell the widget to rebuild if it's mounted. _paceholderSize has already + // Tell the widget to rebuild if it's mounted. _placeholderSize has already // been updated. setState(() {}); } @@ -626,7 +626,7 @@ class _HeroFlight { } } - bool _scheduledPerformAnimtationUpdate = false; + bool _scheduledPerformAnimationUpdate = false; void _handleAnimationUpdate(AnimationStatus status) { // The animation will not finish until the user lifts their finger, so we // should suppress the status update if the gesture is in progress, and @@ -636,23 +636,23 @@ class _HeroFlight { return; } - if (_scheduledPerformAnimtationUpdate) + if (_scheduledPerformAnimationUpdate) return; // The `navigator` must be non-null here, or the first if clause above would // have returned from this method. final NavigatorState navigator = manifest.fromRoute.navigator!; - void delayedPerformAnimtationUpdate() { + void delayedPerformAnimationUpdate() { assert(!navigator.userGestureInProgress); - assert(_scheduledPerformAnimtationUpdate); - _scheduledPerformAnimtationUpdate = false; - navigator.userGestureInProgressNotifier.removeListener(delayedPerformAnimtationUpdate); + assert(_scheduledPerformAnimationUpdate); + _scheduledPerformAnimationUpdate = false; + navigator.userGestureInProgressNotifier.removeListener(delayedPerformAnimationUpdate); _performAnimationUpdate(_proxyAnimation.status); } assert(navigator.userGestureInProgress); - _scheduledPerformAnimtationUpdate = true; - navigator.userGestureInProgressNotifier.addListener(delayedPerformAnimtationUpdate); + _scheduledPerformAnimationUpdate = true; + navigator.userGestureInProgressNotifier.addListener(delayedPerformAnimationUpdate); } void onTick() { @@ -705,20 +705,20 @@ class _HeroFlight { manifest = initialManifest; - final bool shouldIncludeChildInPlacehold; + final bool shouldIncludeChildInPlaceholder; switch (manifest.type) { case HeroFlightDirection.pop: _proxyAnimation.parent = ReverseAnimation(manifest.animation); - shouldIncludeChildInPlacehold = false; + shouldIncludeChildInPlaceholder = false; break; case HeroFlightDirection.push: _proxyAnimation.parent = manifest.animation; - shouldIncludeChildInPlacehold = true; + shouldIncludeChildInPlaceholder = true; break; } heroRectTween = manifest.createHeroRectTween(begin: manifest.fromHeroLocation, end: manifest.toHeroLocation); - manifest.fromHero.startFlight(shouldIncludedChildInPlaceholder: shouldIncludeChildInPlacehold); + manifest.fromHero.startFlight(shouldIncludedChildInPlaceholder: shouldIncludeChildInPlaceholder); manifest.toHero.startFlight(); manifest.overlay.insert(overlayEntry = OverlayEntry(builder: _buildOverlay)); _proxyAnimation.addListener(onTick); @@ -955,7 +955,7 @@ class HeroController extends NavigatorObserver { // If the navigator or the overlay was removed before this end-of-frame // callback was called, then don't actually start a transition, and we don' // t have to worry about any Hero widget we might have hidden in a previous - // flight, or onging flights. + // flight, or ongoing flights. if (navigator == null || overlay == null) return; diff --git a/packages/flutter/lib/src/widgets/interactive_viewer.dart b/packages/flutter/lib/src/widgets/interactive_viewer.dart index 525009230f..12fd35226c 100644 --- a/packages/flutter/lib/src/widgets/interactive_viewer.dart +++ b/packages/flutter/lib/src/widgets/interactive_viewer.dart @@ -548,7 +548,7 @@ class InteractiveViewer extends StatefulWidget { /// /// At the time this is called, the [TransformationController] will have /// already been updated to reflect the change caused by the interaction, if - /// the interation caused the matrix to change. + /// the interaction caused the matrix to change. /// /// {@macro flutter.widgets.InteractiveViewer.onInteractionEnd} /// diff --git a/packages/flutter/lib/src/widgets/scroll_physics.dart b/packages/flutter/lib/src/widgets/scroll_physics.dart index 03450214e9..8e3e18809e 100644 --- a/packages/flutter/lib/src/widgets/scroll_physics.dart +++ b/packages/flutter/lib/src/widgets/scroll_physics.dart @@ -420,7 +420,7 @@ class ScrollPhysics { @override String toString() { if (parent == null) - return objectRuntimeType(this, 'ScrollPhsyics'); + return objectRuntimeType(this, 'ScrollPhysics'); return '${objectRuntimeType(this, 'ScrollPhysics')} -> $parent'; } } diff --git a/packages/flutter/lib/src/widgets/sliver.dart b/packages/flutter/lib/src/widgets/sliver.dart index 44d5d0b8d8..cd6ade2db2 100644 --- a/packages/flutter/lib/src/widgets/sliver.dart +++ b/packages/flutter/lib/src/widgets/sliver.dart @@ -750,7 +750,7 @@ class SliverChildListDelegate extends SliverChildDelegate { /// /// See also: /// -/// * [KeepAlive], which marks whether its chlild widget should be kept alive. +/// * [KeepAlive], which marks whether its child widget should be kept alive. /// * [SliverChildBuilderDelegate] and [SliverChildListDelegate], slivers /// which make usr of the keep alive functionality through the /// `addAutomaticKeepAlives` property. diff --git a/packages/flutter/test/cupertino/scrollbar_test.dart b/packages/flutter/test/cupertino/scrollbar_test.dart index ba14bae2f3..6ba3994d4b 100644 --- a/packages/flutter/test/cupertino/scrollbar_test.dart +++ b/packages/flutter/test/cupertino/scrollbar_test.dart @@ -293,7 +293,7 @@ void main() { testWidgets( 'When isAlwaysShown is true, ' - 'must pass a controller or find PrimarySCrollController that is attached to a scroll view', + 'must pass a controller or find PrimaryScrollController that is attached to a scroll view', (WidgetTester tester) async { final ScrollController controller = ScrollController(); Widget viewWithScroll() { diff --git a/packages/flutter/test/foundation/stack_frame_test.dart b/packages/flutter/test/foundation/stack_frame_test.dart index 8435f5e919..61e6074bd2 100644 --- a/packages/flutter/test/foundation/stack_frame_test.dart +++ b/packages/flutter/test/foundation/stack_frame_test.dart @@ -279,7 +279,7 @@ package:dart-sdk/lib/async/schedule_microtask.dart 52:5 package:dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 168:15 '''; const List webStackTraceFrames = [ - StackFrame(number: -1, className: '', method: 'throw_', packageScheme: 'package', package: 'dart-sdk', packagePath: 'lib/_intenral/js_dev_runtime/private/ddc_runtime/errors.dart', line: 196, column: 49, source: 'package:dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 196:49 throw_'), + StackFrame(number: -1, className: '', method: 'throw_', packageScheme: 'package', package: 'dart-sdk', packagePath: 'lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart', line: 196, column: 49, source: 'package:dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 196:49 throw_'), StackFrame(number: -1, className: '', method: 'blah', packageScheme: 'package', package: 'assertions', packagePath: 'main.dart', line: 4, column: 3, source: 'package:assertions/main.dart 4:3 blah'), StackFrame(number: -1, className: '', method: r'main$', packageScheme: 'package', package: 'assertions', packagePath: 'main.dart', line: 8, column: 5, source: r'package:assertions/main.dart 8:5 main$'), StackFrame(number: -1, className: '', method: r'main$', packageScheme: 'package', package: 'assertions', packagePath: 'main_web_entrypoint.dart', line: 9, column: 3, source: r'package:assertions/main_web_entrypoint.dart 9:3 main$'), diff --git a/packages/flutter/test/gestures/resampler_test.dart b/packages/flutter/test/gestures/resampler_test.dart index 1a690d43ea..673b34291e 100644 --- a/packages/flutter/test/gestures/resampler_test.dart +++ b/packages/flutter/test/gestures/resampler_test.dart @@ -687,7 +687,7 @@ void main() { resampler.stop(result.add); - // All pointer events should have been returned with orignal + // All pointer events should have been returned with original // time stamps and positions. expect(result.length, 6); expect(result[0].timeStamp, const Duration(microseconds: 1000)); diff --git a/packages/flutter/test/material/app_bar_test.dart b/packages/flutter/test/material/app_bar_test.dart index e4fed5e496..cda709ed37 100644 --- a/packages/flutter/test/material/app_bar_test.dart +++ b/packages/flutter/test/material/app_bar_test.dart @@ -1941,7 +1941,7 @@ void main() { semantics.dispose(); }); - testWidgets('SliverAppBar with flexable space has correct semantics order', (WidgetTester tester) async { + testWidgets('SliverAppBar with flexible space has correct semantics order', (WidgetTester tester) async { // Regression test for https://github.com/flutter/flutter/issues/64922. final SemanticsTester semantics = SemanticsTester(tester); diff --git a/packages/flutter/test/material/autocomplete_test.dart b/packages/flutter/test/material/autocomplete_test.dart index c387773c8f..3f78baaa09 100644 --- a/packages/flutter/test/material/autocomplete_test.dart +++ b/packages/flutter/test/material/autocomplete_test.dart @@ -35,7 +35,7 @@ void main() { 'koala', 'lemur', 'mouse', - 'northern white rhinocerous', + 'northern white rhinoceros', ]; const List kOptionsUsers = [ @@ -100,7 +100,7 @@ void main() { expect(find.byType(ListView), findsOneWidget); list = find.byType(ListView).evaluate().first.widget as ListView; // 'chameleon', 'elephant', 'goose', 'lemur', 'mouse', and - // 'northern white rhinocerous' are displayed. + // 'northern white rhinoceros' are displayed. expect(list.semanticChildCount, 6); }); @@ -336,8 +336,8 @@ void main() { final Finder listFinder = find.byType(ListView); expect(listFinder, findsNothing); - /// entering `a` returns 9 items(height > `maxOptionsheight`) from the kOptions - /// so height gets restricted to `maxOptionsheight =250` + /// entering `a` returns 9 items(height > `maxOptionsHeight`) from the kOptions + /// so height gets restricted to `maxOptionsHeight =250` final double nineItemsHeight = await _getDefaultOptionsHeight(tester, 'a'); expect(nineItemsHeight, equals(maxOptionsHeight)); diff --git a/packages/flutter/test/material/elevated_button_theme_test.dart b/packages/flutter/test/material/elevated_button_theme_test.dart index daf2b1c9f2..8911fa95db 100644 --- a/packages/flutter/test/material/elevated_button_theme_test.dart +++ b/packages/flutter/test/material/elevated_button_theme_test.dart @@ -187,7 +187,7 @@ void main() { testWidgets('Theme shadowColor', (WidgetTester tester) async { const ColorScheme colorScheme = ColorScheme.light(); const Color shadowColor = Color(0xff000001); - const Color overiddenColor = Color(0xff000002); + const Color overriddenColor = Color(0xff000002); Widget buildFrame({ Color? overallShadowColor, Color? themeShadowColor, Color? shadowColor }) { return MaterialApp( @@ -243,12 +243,12 @@ void main() { material = tester.widget(buttonMaterialFinder); expect(material.shadowColor, shadowColor); - await tester.pumpWidget(buildFrame(overallShadowColor: overiddenColor, themeShadowColor: shadowColor)); + await tester.pumpWidget(buildFrame(overallShadowColor: overriddenColor, themeShadowColor: shadowColor)); await tester.pumpAndSettle(); // theme animation material = tester.widget(buttonMaterialFinder); expect(material.shadowColor, shadowColor); - await tester.pumpWidget(buildFrame(themeShadowColor: overiddenColor, shadowColor: shadowColor)); + await tester.pumpWidget(buildFrame(themeShadowColor: overriddenColor, shadowColor: shadowColor)); await tester.pumpAndSettle(); // theme animation material = tester.widget(buttonMaterialFinder); expect(material.shadowColor, shadowColor); diff --git a/packages/flutter/test/material/floating_action_button_test.dart b/packages/flutter/test/material/floating_action_button_test.dart index 73af88d38f..be4bad1d59 100644 --- a/packages/flutter/test/material/floating_action_button_test.dart +++ b/packages/flutter/test/material/floating_action_button_test.dart @@ -1048,7 +1048,7 @@ void main() { expect(feedback.hapticCount, 0); }); - testWidgets('FloatingActionButton.enableFeedback is overriden by FloatingActionButtonThemeData.enableFeedback', (WidgetTester tester) async { + testWidgets('FloatingActionButton.enableFeedback is overridden by FloatingActionButtonThemeData.enableFeedback', (WidgetTester tester) async { const bool enableFeedbackTheme = false; const bool enableFeedback = true; final ThemeData theme = ThemeData( diff --git a/packages/flutter/test/material/outlined_button_theme_test.dart b/packages/flutter/test/material/outlined_button_theme_test.dart index 1e3de4f6ae..56406e1786 100644 --- a/packages/flutter/test/material/outlined_button_theme_test.dart +++ b/packages/flutter/test/material/outlined_button_theme_test.dart @@ -190,7 +190,7 @@ void main() { testWidgets('Theme shadowColor', (WidgetTester tester) async { const ColorScheme colorScheme = ColorScheme.light(); const Color shadowColor = Color(0xff000001); - const Color overiddenColor = Color(0xff000002); + const Color overriddenColor = Color(0xff000002); Widget buildFrame({ Color? overallShadowColor, Color? themeShadowColor, Color? shadowColor }) { return MaterialApp( @@ -246,12 +246,12 @@ void main() { material = tester.widget(buttonMaterialFinder); expect(material.shadowColor, shadowColor); - await tester.pumpWidget(buildFrame(overallShadowColor: overiddenColor, themeShadowColor: shadowColor)); + await tester.pumpWidget(buildFrame(overallShadowColor: overriddenColor, themeShadowColor: shadowColor)); await tester.pumpAndSettle(); // theme animation material = tester.widget(buttonMaterialFinder); expect(material.shadowColor, shadowColor); - await tester.pumpWidget(buildFrame(themeShadowColor: overiddenColor, shadowColor: shadowColor)); + await tester.pumpWidget(buildFrame(themeShadowColor: overriddenColor, shadowColor: shadowColor)); await tester.pumpAndSettle(); // theme animation material = tester.widget(buttonMaterialFinder); expect(material.shadowColor, shadowColor); diff --git a/packages/flutter/test/material/popup_menu_test.dart b/packages/flutter/test/material/popup_menu_test.dart index b2fac7549c..fe9e6c277c 100644 --- a/packages/flutter/test/material/popup_menu_test.dart +++ b/packages/flutter/test/material/popup_menu_test.dart @@ -322,7 +322,7 @@ void main() { ), ); - // Tap the first tiem + // Tap the first time await tester.tap(find.text('Actions')); await tester.pumpAndSettle(); await tester.tap(find.text('First option')); @@ -343,7 +343,7 @@ void main() { await tester.pumpAndSettle(); expect(menuItemTapCounters, [2, 1]); - // Tap an iteem without onTap + // Tap an item without onTap await tester.tap(find.text('Actions')); await tester.pumpAndSettle(); await tester.tap(find.text('Option without onTap')); @@ -413,7 +413,7 @@ void main() { expect(menuItemTapCounters, [2, 1]); expect(selected, 'second'); - // Tap an iteem without onTap + // Tap an item without onTap await tester.tap(find.text('Actions')); await tester.pumpAndSettle(); await tester.tap(find.text('Option without onTap')); @@ -2275,7 +2275,7 @@ void main() { feedback.dispose(); }); - Widget buildFrame({ bool? widgetEnableFeedack, bool? themeEnableFeedback }) { + Widget buildFrame({ bool? widgetEnableFeedback, bool? themeEnableFeedback }) { return MaterialApp( home: Scaffold( body: PopupMenuTheme( @@ -2283,7 +2283,7 @@ void main() { enableFeedback: themeEnableFeedback, ), child: PopupMenuButton( - enableFeedback: widgetEnableFeedack, + enableFeedback: widgetEnableFeedback, child: const Text('Show Menu'), itemBuilder: (BuildContext context) { return >[ @@ -2304,7 +2304,7 @@ void main() { expect(feedback.hapticCount, 0); // PopupMenuButton with enabled feedback. - await tester.pumpWidget(buildFrame(widgetEnableFeedack: true)); + await tester.pumpWidget(buildFrame(widgetEnableFeedback: true)); await tester.tap(find.text('Show Menu')); await tester.pumpAndSettle(); expect(feedback.clickSoundCount, 1); @@ -2313,7 +2313,7 @@ void main() { await tester.pumpWidget(Container()); // PopupMenuButton with disabled feedback. - await tester.pumpWidget(buildFrame(widgetEnableFeedack: false)); + await tester.pumpWidget(buildFrame(widgetEnableFeedback: false)); await tester.tap(find.text('Show Menu')); await tester.pumpAndSettle(); expect(feedback.clickSoundCount, 1); @@ -2340,7 +2340,7 @@ void main() { await tester.pumpWidget(Container()); // PopupMenu enableFeedback property overrides PopupMenuButtonTheme. - await tester.pumpWidget(buildFrame(widgetEnableFeedack: false,themeEnableFeedback: true)); + await tester.pumpWidget(buildFrame(widgetEnableFeedback: false,themeEnableFeedback: true)); await tester.tap(find.text('Show Menu')); await tester.pumpAndSettle(); expect(feedback.clickSoundCount, 2); diff --git a/packages/flutter/test/material/text_button_theme_test.dart b/packages/flutter/test/material/text_button_theme_test.dart index bc581336de..0dc30572bf 100644 --- a/packages/flutter/test/material/text_button_theme_test.dart +++ b/packages/flutter/test/material/text_button_theme_test.dart @@ -185,7 +185,7 @@ void main() { testWidgets('Theme shadowColor', (WidgetTester tester) async { const ColorScheme colorScheme = ColorScheme.light(); const Color shadowColor = Color(0xff000001); - const Color overiddenColor = Color(0xff000002); + const Color overriddenColor = Color(0xff000002); Widget buildFrame({ Color? overallShadowColor, Color? themeShadowColor, Color? shadowColor }) { return MaterialApp( @@ -241,12 +241,12 @@ void main() { material = tester.widget(buttonMaterialFinder); expect(material.shadowColor, shadowColor); - await tester.pumpWidget(buildFrame(overallShadowColor: overiddenColor, themeShadowColor: shadowColor)); + await tester.pumpWidget(buildFrame(overallShadowColor: overriddenColor, themeShadowColor: shadowColor)); await tester.pumpAndSettle(); // theme animation material = tester.widget(buttonMaterialFinder); expect(material.shadowColor, shadowColor); - await tester.pumpWidget(buildFrame(themeShadowColor: overiddenColor, shadowColor: shadowColor)); + await tester.pumpWidget(buildFrame(themeShadowColor: overriddenColor, shadowColor: shadowColor)); await tester.pumpAndSettle(); // theme animation material = tester.widget(buttonMaterialFinder); expect(material.shadowColor, shadowColor); diff --git a/packages/flutter/test/material/text_field_test.dart b/packages/flutter/test/material/text_field_test.dart index 479fcbf040..bb1b0d07ea 100644 --- a/packages/flutter/test/material/text_field_test.dart +++ b/packages/flutter/test/material/text_field_test.dart @@ -2653,7 +2653,7 @@ void main() { } const String hintPlaceholder = 'Placeholder'; - const String multipleLineText = "Here's a text, which is more than one line, to demostrate the multiple line hint text"; + const String multipleLineText = "Here's a text, which is more than one line, to demonstrate the multiple line hint text"; await tester.pumpWidget(builder(null, hintPlaceholder)); RenderBox findHintText(String hint) => tester.renderObject(find.text(hint)); diff --git a/packages/flutter/test/material/text_form_field_test.dart b/packages/flutter/test/material/text_form_field_test.dart index 5ed6cf0b88..f5880498ad 100644 --- a/packages/flutter/test/material/text_form_field_test.dart +++ b/packages/flutter/test/material/text_form_field_test.dart @@ -549,7 +549,7 @@ void main() { }); // Regression test for https://github.com/flutter/flutter/issues/34847. - testWidgets("reset resets the text field's value to empty when intialValue is null", (WidgetTester tester) async { + testWidgets("reset resets the text field's value to empty when initialValue is null", (WidgetTester tester) async { await tester.pumpWidget( MaterialApp( home: Material( diff --git a/packages/flutter/test/rendering/box_test.dart b/packages/flutter/test/rendering/box_test.dart index 358aad7e5f..a32553e340 100644 --- a/packages/flutter/test/rendering/box_test.dart +++ b/packages/flutter/test/rendering/box_test.dart @@ -313,11 +313,11 @@ void main() { expect(parentData.offset.dx, isNot(equals(0.0))); paddedBox.child = null; - final RenderConstrainedBox constraintedBox = RenderConstrainedBox( + final RenderConstrainedBox constrainedBox = RenderConstrainedBox( child: coloredBox, additionalConstraints: const BoxConstraints(), ); - layout(constraintedBox); + layout(constrainedBox); expect(coloredBox.parentData?.runtimeType, ParentData); }); @@ -379,7 +379,7 @@ void main() { expect(unconstrained.getMaxIntrinsicWidth(100.0), equals(200.0)); }); - group('ConstraintsTransfromBox', () { + group('ConstraintsTransformBox', () { FlutterErrorDetails? firstErrorDetails; void exhaustErrors() { FlutterErrorDetails? next; diff --git a/packages/flutter/test/rendering/sliver_fixed_extent_layout_test.dart b/packages/flutter/test/rendering/sliver_fixed_extent_layout_test.dart index 715f582518..8b262e4e6d 100644 --- a/packages/flutter/test/rendering/sliver_fixed_extent_layout_test.dart +++ b/packages/flutter/test/rendering/sliver_fixed_extent_layout_test.dart @@ -93,10 +93,10 @@ void main() { }); test('should be 5 when offset is 6 times greater than a specific item extent where the division will return more than 13 zero decimals', () { - const double itemExtentSpecificForAProblematicSreenSize = 411.42857142857144; + const double itemExtentSpecificForAProblematicScreenSize = 411.42857142857144; final int actual = testGetMaxChildIndexForScrollOffset( - itemExtentSpecificForAProblematicSreenSize * 6 + extraValueToHaveRoundingIssues, - itemExtentSpecificForAProblematicSreenSize, + itemExtentSpecificForAProblematicScreenSize * 6 + extraValueToHaveRoundingIssues, + itemExtentSpecificForAProblematicScreenSize, ); expect(actual, 5); }); diff --git a/packages/flutter/test/services/restoration_bucket_test.dart b/packages/flutter/test/services/restoration_bucket_test.dart index 4652ce97b7..49440f7dec 100644 --- a/packages/flutter/test/services/restoration_bucket_test.dart +++ b/packages/flutter/test/services/restoration_bucket_test.dart @@ -119,7 +119,7 @@ void main() { expect(manager.updateScheduled, isFalse); }); - test('claim child with exisiting data', () { + test('claim child with existing data', () { final MockRestorationManager manager = MockRestorationManager(); final Map rawData = _createRawDataSet(); final RestorationBucket bucket = RestorationBucket.root(manager: manager, rawData: rawData); @@ -139,7 +139,7 @@ void main() { expect(manager.updateScheduled, isFalse); }); - test('claim child with no exisiting data', () { + test('claim child with no existing data', () { final MockRestorationManager manager = MockRestorationManager(); final Map rawData = _createRawDataSet(); final RestorationBucket bucket = RestorationBucket.root(manager: manager, rawData: rawData); diff --git a/packages/flutter/test/widgets/autocomplete_test.dart b/packages/flutter/test/widgets/autocomplete_test.dart index 29ad830a00..e1339db4c5 100644 --- a/packages/flutter/test/widgets/autocomplete_test.dart +++ b/packages/flutter/test/widgets/autocomplete_test.dart @@ -35,7 +35,7 @@ void main() { 'koala', 'lemur', 'mouse', - 'northern white rhinocerous', + 'northern white rhinoceros', ]; const List kOptionsUsers = [ @@ -125,7 +125,7 @@ void main() { expect(lastOptions.elementAt(2), 'goose'); expect(lastOptions.elementAt(3), 'lemur'); expect(lastOptions.elementAt(4), 'mouse'); - expect(lastOptions.elementAt(5), 'northern white rhinocerous'); + expect(lastOptions.elementAt(5), 'northern white rhinoceros'); }); testWidgets('can filter and select a list of custom User options', (WidgetTester tester) async { diff --git a/packages/flutter/test/widgets/basic_test.dart b/packages/flutter/test/widgets/basic_test.dart index 932c9311a5..7e426167ce 100644 --- a/packages/flutter/test/widgets/basic_test.dart +++ b/packages/flutter/test/widgets/basic_test.dart @@ -387,7 +387,7 @@ void main() { expect(mockCanvas.rects, isEmpty); expect(mockCanvas.paints, isEmpty); expect(mockContext.children, isEmpty); - expect(mockContext.offets, isEmpty); + expect(mockContext.offsets, isEmpty); }); testWidgets('ColoredBox - no size, child', (WidgetTester tester) async { @@ -411,7 +411,7 @@ void main() { expect(mockCanvas.rects, isEmpty); expect(mockCanvas.paints, isEmpty); expect(mockContext.children.single, renderSizedBox); - expect(mockContext.offets.single, Offset.zero); + expect(mockContext.offsets.single, Offset.zero); }); testWidgets('ColoredBox - size, no child', (WidgetTester tester) async { @@ -424,7 +424,7 @@ void main() { expect(mockCanvas.rects.single, const Rect.fromLTWH(0, 0, 800, 600)); expect(mockCanvas.paints.single.color, colorToPaint); expect(mockContext.children, isEmpty); - expect(mockContext.offets, isEmpty); + expect(mockContext.offsets, isEmpty); }); testWidgets('ColoredBox - size, child', (WidgetTester tester) async { @@ -440,7 +440,7 @@ void main() { expect(mockCanvas.rects.single, const Rect.fromLTWH(0, 0, 800, 600)); expect(mockCanvas.paints.single.color, colorToPaint); expect(mockContext.children.single, renderSizedBox); - expect(mockContext.offets.single, Offset.zero); + expect(mockContext.offsets.single, Offset.zero); }); testWidgets('ColoredBox - properties', (WidgetTester tester) async { @@ -666,7 +666,7 @@ class DoesNotHitRenderBox extends Matcher { class _MockPaintingContext extends Fake implements PaintingContext { final List children = []; - final List offets = []; + final List offsets = []; @override final _MockCanvas canvas = _MockCanvas(); @@ -674,7 +674,7 @@ class _MockPaintingContext extends Fake implements PaintingContext { @override void paintChild(RenderObject child, Offset offset) { children.add(child); - offets.add(offset); + offsets.add(offset); } } diff --git a/packages/flutter/test/widgets/editable_text_test.dart b/packages/flutter/test/widgets/editable_text_test.dart index 74fd79d12d..b156c96704 100644 --- a/packages/flutter/test/widgets/editable_text_test.dart +++ b/packages/flutter/test/widgets/editable_text_test.dart @@ -3817,7 +3817,7 @@ void main() { await tester.pump(); expect(renderEditable.text!.children, isNull); - // Everything's just formated the same way now. + // Everything's just formatted the same way now. expect(renderEditable.text!.text, 'text composing text'); expect(renderEditable.text!.style!.decoration, isNull); }); diff --git a/packages/flutter/test/widgets/heroes_test.dart b/packages/flutter/test/widgets/heroes_test.dart index 00142a331b..69601a964a 100644 --- a/packages/flutter/test/widgets/heroes_test.dart +++ b/packages/flutter/test/widgets/heroes_test.dart @@ -2974,7 +2974,7 @@ Future main() async { navigatorKey.currentState?.pop(); await tester.pump(); controller.jumpTo(1000); - // Starts Hero animation and scroll animation almost simutaneously. + // Starts Hero animation and scroll animation almost simultaneously. // Scroll to make the Hero invisible. await tester.pump(); expect(findRenderOpacity()?.opacity, anyOf(isNull, 1.0)); diff --git a/packages/flutter/test/widgets/platform_view_test.dart b/packages/flutter/test/widgets/platform_view_test.dart index e7c77d941c..c259020371 100644 --- a/packages/flutter/test/widgets/platform_view_test.dart +++ b/packages/flutter/test/widgets/platform_view_test.dart @@ -2649,7 +2649,7 @@ void main() { expect(logs, isEmpty); expect(controller.dispatchedPointerEvents, isEmpty); - // Test: Transluscent + // Test: Translucent await tester.pumpWidget( scaffold(PlatformViewSurface( controller: controller, diff --git a/packages/flutter/test/widgets/router_restoration_test.dart b/packages/flutter/test/widgets/router_restoration_test.dart index 115f945687..a37f361259 100644 --- a/packages/flutter/test/widgets/router_restoration_test.dart +++ b/packages/flutter/test/widgets/router_restoration_test.dart @@ -7,7 +7,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets('Router state restoration without RouteInfomrationProvider', (WidgetTester tester) async { + testWidgets('Router state restoration without RouteInformationProvider', (WidgetTester tester) async { final UniqueKey router = UniqueKey(); _TestRouterDelegate delegate() => tester.widget>(find.byKey(router)).routerDelegate as _TestRouterDelegate; @@ -41,7 +41,7 @@ void main() { expect(delegate().restoredRoutePaths, ['/foo', '/foo']); }); - testWidgets('Router state restoration with RouteInfomrationProvider', (WidgetTester tester) async { + testWidgets('Router state restoration with RouteInformationProvider', (WidgetTester tester) async { final UniqueKey router = UniqueKey(); _TestRouterDelegate delegate() => tester.widget>(find.byKey(router)).routerDelegate as _TestRouterDelegate; _TestRouteInformationProvider provider() => tester.widget>(find.byKey(router)).routeInformationProvider! as _TestRouteInformationProvider; diff --git a/packages/flutter/test/widgets/router_test.dart b/packages/flutter/test/widgets/router_test.dart index 4dfe3baf67..ba07a4ebc8 100644 --- a/packages/flutter/test/widgets/router_test.dart +++ b/packages/flutter/test/widgets/router_test.dart @@ -263,7 +263,7 @@ void main() { }, onPopRoute: () { provider.value = const RouteInformation( - location: 'popped outter', + location: 'popped outer', ); return SynchronousFuture(true); }, @@ -332,7 +332,7 @@ void main() { }, onPopRoute: () { provider.value = const RouteInformation( - location: 'popped outter', + location: 'popped outer', ); return SynchronousFuture(true); }, @@ -347,7 +347,7 @@ void main() { result = await outerDispatcher.invokeCallback(SynchronousFuture(false)); expect(result, isTrue); await tester.pump(); - expect(find.text('popped outter'), findsOneWidget); + expect(find.text('popped outer'), findsOneWidget); innerDispatcher1.takePriority(); result = false; @@ -466,7 +466,7 @@ testWidgets('ChildBackButtonDispatcher take priority recursively', (WidgetTester ), ), )); - // This should work without calling the takePrioirty on the innerDispatcher2 + // This should work without calling the takePriority on the innerDispatcher2 // and the innerDispatcher1. innerDispatcher3.takePriority(); bool result = false; @@ -757,7 +757,7 @@ testWidgets('ChildBackButtonDispatcher take priority recursively', (WidgetTester }, onPopRoute: () { provider.value = const RouteInformation( - location: 'popped outter', + location: 'popped outer', ); return SynchronousFuture(true); }, @@ -799,7 +799,7 @@ testWidgets('ChildBackButtonDispatcher take priority recursively', (WidgetTester } ..onPopRoute = () { provider.value = const RouteInformation( - location: 'popped outter', + location: 'popped outer', ); return SynchronousFuture(true); }; @@ -833,7 +833,7 @@ testWidgets('ChildBackButtonDispatcher take priority recursively', (WidgetTester } ..onPopRoute = () { provider.value = const RouteInformation( - location: 'popped outter', + location: 'popped outer', ); return SynchronousFuture(true); }; @@ -878,7 +878,7 @@ testWidgets('ChildBackButtonDispatcher take priority recursively', (WidgetTester } ..onPopRoute = () { provider.value = const RouteInformation( - location: 'popped outter', + location: 'popped outer', ); return SynchronousFuture(true); }; @@ -903,7 +903,7 @@ testWidgets('ChildBackButtonDispatcher take priority recursively', (WidgetTester } ..onPopRoute = () { provider.value = const RouteInformation( - location: 'popped outter', + location: 'popped outer', ); return SynchronousFuture(true); }; @@ -919,7 +919,7 @@ testWidgets('ChildBackButtonDispatcher take priority recursively', (WidgetTester await tester.pump(); await outerDispatcher.invokeCallback(SynchronousFuture(false)); await tester.pump(); - expect(find.text('popped outter'), findsOneWidget); + expect(find.text('popped outer'), findsOneWidget); }); testWidgets('Nested backButtonListener should take priority', (WidgetTester tester) async { @@ -961,7 +961,7 @@ testWidgets('ChildBackButtonDispatcher take priority recursively', (WidgetTester }, onPopRoute: () { provider.value = const RouteInformation( - location: 'popped outter', + location: 'popped outer', ); return SynchronousFuture(true); }, @@ -1016,7 +1016,7 @@ testWidgets('ChildBackButtonDispatcher take priority recursively', (WidgetTester }, onPopRoute: () { provider.value = const RouteInformation( - location: 'popped outter', + location: 'popped outer', ); return SynchronousFuture(true); }, @@ -1065,7 +1065,7 @@ testWidgets('ChildBackButtonDispatcher take priority recursively', (WidgetTester } ..onPopRoute = () { provider.value = const RouteInformation( - location: 'popped outter', + location: 'popped outer', ); return SynchronousFuture(true); }; diff --git a/packages/flutter/test/widgets/routes_test.dart b/packages/flutter/test/widgets/routes_test.dart index 13243ca6af..6397fcf84b 100644 --- a/packages/flutter/test/widgets/routes_test.dart +++ b/packages/flutter/test/widgets/routes_test.dart @@ -979,7 +979,7 @@ void main() { expect(find.byType(ModalBarrier), findsNWidgets(1)); }); - testWidgets('showGeneralDialog adds non-dismissable barrier when barrierDismissable is false', (WidgetTester tester) async { + testWidgets('showGeneralDialog adds non-dismissible barrier when barrierDismissible is false', (WidgetTester tester) async { await tester.pumpWidget(MaterialApp( home: Builder( builder: (BuildContext context) { diff --git a/packages/flutter/test/widgets/value_listenable_builder_test.dart b/packages/flutter/test/widgets/value_listenable_builder_test.dart index 0505c895c7..8549d3f6ac 100644 --- a/packages/flutter/test/widgets/value_listenable_builder_test.dart +++ b/packages/flutter/test/widgets/value_listenable_builder_test.dart @@ -74,7 +74,7 @@ void main() { expect(find.text('Hendricks'), findsOneWidget); }); - testWidgets('Stops listening to old listenable after chainging listenable', (WidgetTester tester) async { + testWidgets('Stops listening to old listenable after changing listenable', (WidgetTester tester) async { await tester.pumpWidget(textBuilderUnderTest); valueListenable.value = 'Gilfoyle'; diff --git a/packages/flutter/test/widgets/widget_inspector_test.dart b/packages/flutter/test/widgets/widget_inspector_test.dart index c1ac59954c..4d0991ff32 100644 --- a/packages/flutter/test/widgets/widget_inspector_test.dart +++ b/packages/flutter/test/widgets/widget_inspector_test.dart @@ -114,7 +114,7 @@ class CyclicDiagnostic extends DiagnosticableTree { final String name; @override - String toStringShort() => '${objectRuntimeType(this, 'CyclicDiagnistic')}-$name'; + String toStringShort() => '${objectRuntimeType(this, 'CyclicDiagnostic')}-$name'; // We have to override toString to avoid the toString call itself triggering a // stack overflow. @@ -1659,6 +1659,7 @@ class _TestWidgetInspectorService extends TestWidgetInspectorService { expect(alternateChildJson['valueId'], equals(childJson['valueId'])); alternateChildrenJson = (await service.testExtension('getChildrenSummaryTree', {'arg': childJson['objectId']! as String, 'objectGroup': group}))! as List; expect(alternateChildrenJson.length , equals(0)); + // Tests are failing when this typo is fixed. expect(childJson['chidlren'], isNull); }, skip: !WidgetInspectorService.instance.isWidgetCreationTracked()); // Test requires --track-widget-creation flag. diff --git a/packages/flutter_driver/lib/src/common/find.dart b/packages/flutter_driver/lib/src/common/find.dart index cca7c0b4c1..77fbe45c07 100644 --- a/packages/flutter_driver/lib/src/common/find.dart +++ b/packages/flutter_driver/lib/src/common/find.dart @@ -83,9 +83,9 @@ class WaitForAbsent extends CommandWithTarget { /// A Flutter Driver command that waits until [finder] can be tapped. class WaitForTappable extends CommandWithTarget { /// Creates a command that waits for the widget identified by [finder] to - /// be tappable within the [timeout] amiount of time. + /// be tappable within the [timeout] amount of time. /// - /// If [timeout] is not specified, the command defuts to no timeout. + /// If [timeout] is not specified, the command defaults to no timeout. WaitForTappable(SerializableFinder finder, {Duration? timeout}) : super(finder, timeout: timeout); diff --git a/packages/flutter_driver/lib/src/driver/vmservice_driver.dart b/packages/flutter_driver/lib/src/driver/vmservice_driver.dart index 32e3196709..e75dca3ee2 100644 --- a/packages/flutter_driver/lib/src/driver/vmservice_driver.dart +++ b/packages/flutter_driver/lib/src/driver/vmservice_driver.dart @@ -101,7 +101,7 @@ class VMServiceFlutterDriver extends FlutterDriver { future: _waitForRootIsolate(), timeout: kUnusuallyLongTimeout, message: isolateNumber == null - ? 'The root isolate is taking an unuusally long time to start.' + ? 'The root isolate is taking an unusually long time to start.' : 'Isolate $isolateNumber is taking an unusually long time to start.', ))!; _log('Isolate found with number: ${isolateRef.number}'); diff --git a/packages/flutter_driver/test/src/real_tests/extension_test.dart b/packages/flutter_driver/test/src/real_tests/extension_test.dart index 824251299b..966c3141c7 100644 --- a/packages/flutter_driver/test/src/real_tests/extension_test.dart +++ b/packages/flutter_driver/test/src/real_tests/extension_test.dart @@ -258,7 +258,7 @@ void main() { }); testWidgets( - "waiting for NoPendingPlatformMessages returns immediately when there're no platform messages", (WidgetTester tester) async { + 'waiting for NoPendingPlatformMessages returns immediately when there are no platform messages', (WidgetTester tester) async { driverExtension .call(const WaitForCondition(NoPendingPlatformMessages()).serialize()) .then(expectAsync1((Map r) { 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 12a557d537..c1085f3259 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 @@ -154,7 +154,7 @@ void main() { }); expect(log, [ 'VMServiceFlutterDriver: Connecting to Flutter application at ', - 'VMServiceFlutterDriver: The root isolate is taking an unuusally long time to start.', + 'VMServiceFlutterDriver: The root isolate is taking an unusually long time to start.', ]); }); diff --git a/packages/flutter_localizations/lib/src/utils/date_localizations.dart b/packages/flutter_localizations/lib/src/utils/date_localizations.dart index aa5ce52846..6033a165ca 100644 --- a/packages/flutter_localizations/lib/src/utils/date_localizations.dart +++ b/packages/flutter_localizations/lib/src/utils/date_localizations.dart @@ -19,7 +19,7 @@ void loadDateIntlDataIfNotLoaded() { // TODO(garyq): Add support for scriptCodes. Do not strip scriptCode from string. // Keeps track of initialized locales. This can only happen if a locale - // with a stripped scriptCode has already been initialzed. The set of + // with a stripped scriptCode has already been initialized. The set of // initialized locales should be removed when scriptCode stripping is // removed. final Set initializedLocales = {}; diff --git a/packages/flutter_localizations/test/basics_test.dart b/packages/flutter_localizations/test/basics_test.dart index 70aa3de219..b350cb6588 100644 --- a/packages/flutter_localizations/test/basics_test.dart +++ b/packages/flutter_localizations/test/basics_test.dart @@ -48,7 +48,7 @@ void main() { await tester.pumpWidget(Container()); }); - testWidgets('Locale without coutryCode', (WidgetTester tester) async { + testWidgets('Locale without countryCode', (WidgetTester tester) async { // Regression test for https://github.com/flutter/flutter/pull/16782 await tester.pumpWidget( MaterialApp( diff --git a/packages/flutter_test/lib/src/all_elements.dart b/packages/flutter_test/lib/src/all_elements.dart index a191041ef3..4f5e9f5969 100644 --- a/packages/flutter_test/lib/src/all_elements.dart +++ b/packages/flutter_test/lib/src/all_elements.dart @@ -25,7 +25,7 @@ Iterable collectAllElementsFrom( /// Provides a recursive, efficient, depth first search of an element tree. /// -/// [Element.visitChildren] does not guarnatee order, but does guarnatee stable +/// [Element.visitChildren] does not guarantee order, but does guarantee stable /// order. This iterator also guarantees stable order, and iterates in a left /// to right order: /// diff --git a/packages/flutter_test/lib/src/goldens.dart b/packages/flutter_test/lib/src/goldens.dart index c2f666341f..ff96a92bdc 100644 --- a/packages/flutter_test/lib/src/goldens.dart +++ b/packages/flutter_test/lib/src/goldens.dart @@ -204,7 +204,7 @@ abstract class WebGoldenComparator { /// When using `flutter test --platform=chrome`, a comparator implemented by /// [DefaultWebGoldenComparator] is used if no other comparator is specified. It /// will send a request to the test server, which uses [goldenFileComparator] -/// for golden file compatison. +/// for golden file comparison. /// /// When using `flutter test --update-goldens`, the [DefaultWebGoldenComparator] /// updates the files on disk to match the rendering. diff --git a/packages/flutter_test/lib/src/test_async_utils.dart b/packages/flutter_test/lib/src/test_async_utils.dart index 46a5c9f211..2a4003d320 100644 --- a/packages/flutter_test/lib/src/test_async_utils.dart +++ b/packages/flutter_test/lib/src/test_async_utils.dart @@ -45,7 +45,7 @@ class _AsyncScope { /// }); /// ``` class TestAsyncUtils { - // This class is not meant to be instatiated or extended; this constructor + // This class is not meant to be instantiated or extended; this constructor // prevents instantiation and extension. TestAsyncUtils._(); static const String _className = 'TestAsyncUtils'; diff --git a/packages/flutter_tools/bin/podhelper.rb b/packages/flutter_tools/bin/podhelper.rb index e959532173..9006fb22c3 100644 --- a/packages/flutter_tools/bin/podhelper.rb +++ b/packages/flutter_tools/bin/podhelper.rb @@ -160,7 +160,7 @@ def flutter_install_ios_engine_pod(ios_application_path = nil) # Generate a fake podspec to represent the Flutter framework. # This is only necessary because plugin podspecs contain `s.dependency 'Flutter'`, and if this Podfile - # does not add a `pod 'Flutter'` CocoaPods will try to download it from the CoocaPods trunk. + # does not add a `pod 'Flutter'` CocoaPods will try to download it from the CocoaPods trunk. File.open(copied_podspec_path, 'w') { |podspec| podspec.write <<~EOF # @@ -198,7 +198,7 @@ def flutter_install_macos_engine_pod(mac_application_path = nil) # Generate a fake podspec to represent the FlutterMacOS framework. # This is only necessary because plugin podspecs contain `s.dependency 'FlutterMacOS'`, and if this Podfile - # does not add a `pod 'FlutterMacOS'` CocoaPods will try to download it from the CoocaPods trunk. + # does not add a `pod 'FlutterMacOS'` CocoaPods will try to download it from the CocoaPods trunk. File.open(copied_podspec_path, 'w') { |podspec| podspec.write <<~EOF # diff --git a/packages/flutter_tools/lib/src/android/deferred_components_gen_snapshot_validator.dart b/packages/flutter_tools/lib/src/android/deferred_components_gen_snapshot_validator.dart index 524b620230..9299ba1223 100644 --- a/packages/flutter_tools/lib/src/android/deferred_components_gen_snapshot_validator.dart +++ b/packages/flutter_tools/lib/src/android/deferred_components_gen_snapshot_validator.dart @@ -183,7 +183,7 @@ class DeferredComponentsGenSnapshotValidator extends DeferredComponentsValidator /// considered new. bool checkAgainstLoadingUnitsCache( List generatedLoadingUnits) { - final List cachedLoadingUnits = _parseLodingUnitsCache(projectDir.childFile(DeferredComponentsValidator.kLoadingUnitsCacheFileName)); + final List cachedLoadingUnits = _parseLoadingUnitsCache(projectDir.childFile(DeferredComponentsValidator.kLoadingUnitsCacheFileName)); loadingUnitComparisonResults = {}; final Set unmatchedLoadingUnits = {}; final List newLoadingUnits = []; @@ -215,7 +215,7 @@ class DeferredComponentsGenSnapshotValidator extends DeferredComponentsValidator return loadingUnitComparisonResults!['match']! as bool; } - List _parseLodingUnitsCache(File cacheFile) { + List _parseLoadingUnitsCache(File cacheFile) { final List loadingUnits = []; inputs.add(cacheFile); if (!cacheFile.existsSync()) { diff --git a/packages/flutter_tools/lib/src/artifacts.dart b/packages/flutter_tools/lib/src/artifacts.dart index bf8121dd61..8dcbc9dafc 100644 --- a/packages/flutter_tools/lib/src/artifacts.dart +++ b/packages/flutter_tools/lib/src/artifacts.dart @@ -68,7 +68,7 @@ enum HostArtifact { dart2jsSnapshot, /// The dart snapshot of the dartdev compiler. dartdevcSnapshot, - /// The dart snpashot of the kernel worker compiler. + /// The dart snapshot of the kernel worker compiler. kernelWorkerSnapshot, /// The root of the web implementation of the dart SDK. flutterWebSdk, diff --git a/packages/flutter_tools/lib/src/base/deferred_component.dart b/packages/flutter_tools/lib/src/base/deferred_component.dart index 4bd63279bc..64b52ceeca 100644 --- a/packages/flutter_tools/lib/src/base/deferred_component.dart +++ b/packages/flutter_tools/lib/src/base/deferred_component.dart @@ -111,7 +111,7 @@ class LoadingUnit { /// Constructs a [LoadingUnit]. /// /// Loading units must include an [id] and [libraries]. The [path] is only present when - /// parsing the loading unit from a laoding unit manifest produced by gen_snapshot. + /// parsing the loading unit from a loading unit manifest produced by gen_snapshot. LoadingUnit({ required this.id, required this.libraries, diff --git a/packages/flutter_tools/lib/src/base/io.dart b/packages/flutter_tools/lib/src/base/io.dart index 5520931c3c..1f3cebb27f 100644 --- a/packages/flutter_tools/lib/src/base/io.dart +++ b/packages/flutter_tools/lib/src/base/io.dart @@ -363,7 +363,7 @@ class Stdio { /// Adds [stream] to [stdout]. Future addStdoutStream(Stream> stream) => stdout.addStream(stream); - /// Adds [srtream] to [stderr]. + /// Adds [stream] to [stderr]. Future addStderrStream(Stream> stream) => stderr.addStream(stream); } diff --git a/packages/flutter_tools/lib/src/commands/build_bundle.dart b/packages/flutter_tools/lib/src/commands/build_bundle.dart index 5c7bda8fde..f693cfb194 100644 --- a/packages/flutter_tools/lib/src/commands/build_bundle.dart +++ b/packages/flutter_tools/lib/src/commands/build_bundle.dart @@ -45,7 +45,7 @@ class BuildBundleCommand extends BuildSubCommand { ) ..addOption('asset-dir', defaultsTo: getAssetBuildDirectory(), - help: 'The output directory for the kernel_blob.bin file, the native snapshet, the assets, etc. ' + help: 'The output directory for the kernel_blob.bin file, the native snapshot, the assets, etc. ' 'Can be used to redirect the output when driving the Flutter toolchain from another build system.', ) ..addFlag( diff --git a/packages/flutter_tools/lib/src/custom_devices/custom_device.dart b/packages/flutter_tools/lib/src/custom_devices/custom_device.dart index 5f4a1cd9f5..31f00b1778 100644 --- a/packages/flutter_tools/lib/src/custom_devices/custom_device.dart +++ b/packages/flutter_tools/lib/src/custom_devices/custom_device.dart @@ -28,7 +28,7 @@ import 'custom_device_config.dart'; import 'custom_device_workflow.dart'; import 'custom_devices_config.dart'; -/// Replace all ocurrences of `${someName}` with the value found for that +/// Replace all occurrences of `${someName}` with the value found for that /// name inside replacementValues or additionalReplacementValues. /// /// The replacement value is first looked for in [replacementValues] and then @@ -80,7 +80,7 @@ class CustomDeviceLogReader extends DeviceLogReader { /// Add all lines emitted by [lines] to this [CustomDeviceLogReader]s [logLines] /// stream. /// - /// Similiar to [listenToProcessOutput], [logLines] will not be marked as done + /// Similar to [listenToProcessOutput], [logLines] will not be marked as done /// when the argument stream is done. /// /// Useful when you want to combine the contents of multiple log readers. @@ -215,7 +215,7 @@ class CustomDevicePortForwarder extends DevicePortForwarder { assert(_forwardedPorts.contains(forwardedPort)); // since a forwarded port represents a running process launched with - // the forwardPortCommand, unforwarding is as easy as killing the proces + // the forwardPortCommand, unforwarding is as easy as killing the process _processManager.killPid(forwardedPort.context.pid); _forwardedPorts.remove(forwardedPort); } diff --git a/packages/flutter_tools/lib/src/features.dart b/packages/flutter_tools/lib/src/features.dart index f796a11a44..a4e0834bc5 100644 --- a/packages/flutter_tools/lib/src/features.dart +++ b/packages/flutter_tools/lib/src/features.dart @@ -293,7 +293,7 @@ const Feature experimentalInvalidationStrategy = Feature( ), ); -/// The feature for enabling the Windows UWP embeding. +/// The feature for enabling the Windows UWP embedding. const Feature windowsUwpEmbedding = Feature( name: 'Flutter for Windows UWP', configSetting: 'enable-windows-uwp-desktop', diff --git a/packages/flutter_tools/lib/src/fuchsia/fuchsia_pm.dart b/packages/flutter_tools/lib/src/fuchsia/fuchsia_pm.dart index 01c0d8b89e..9d71d8872d 100644 --- a/packages/flutter_tools/lib/src/fuchsia/fuchsia_pm.dart +++ b/packages/flutter_tools/lib/src/fuchsia/fuchsia_pm.dart @@ -185,7 +185,7 @@ class FuchsiaPackageServer { int get port => _port; - /// Uses [FuchiaPM.newrepo] and [FuchsiaPM.serve] to spin up a new Fuchsia + /// Uses [FuchsiaPM.newrepo] and [FuchsiaPM.serve] to spin up a new Fuchsia /// package server. /// /// Returns false if the repo could not be created or the server could not diff --git a/packages/flutter_tools/lib/src/platform_plugins.dart b/packages/flutter_tools/lib/src/platform_plugins.dart index cd4f11cdbb..df4cea0627 100644 --- a/packages/flutter_tools/lib/src/platform_plugins.dart +++ b/packages/flutter_tools/lib/src/platform_plugins.dart @@ -101,15 +101,15 @@ class AndroidPlugin extends PluginPlatform { 'package': package, 'class': pluginClass, // Mustache doesn't support complex types. - 'supportsEmbeddingV1': _supportedEmbedings.contains('1'), - 'supportsEmbeddingV2': _supportedEmbedings.contains('2'), + 'supportsEmbeddingV1': _supportedEmbeddings.contains('1'), + 'supportsEmbeddingV2': _supportedEmbeddings.contains('2'), }; } Set? _cachedEmbeddingVersion; /// Returns the version of the Android embedding. - Set get _supportedEmbedings => _cachedEmbeddingVersion ??= _getSupportedEmbeddings(); + Set get _supportedEmbeddings => _cachedEmbeddingVersion ??= _getSupportedEmbeddings(); Set _getSupportedEmbeddings() { assert(pluginPath != null); diff --git a/packages/flutter_tools/lib/src/resident_runner.dart b/packages/flutter_tools/lib/src/resident_runner.dart index 31c9ef7bd9..a88d586a1c 100644 --- a/packages/flutter_tools/lib/src/resident_runner.dart +++ b/packages/flutter_tools/lib/src/resident_runner.dart @@ -671,7 +671,7 @@ abstract class ResidentHandlers { /// Called to print help to the terminal. void printHelp({ @required bool details }); - /// Perfor a hot reload or hot restart of all attached applications. + /// Perform a hot reload or hot restart of all attached applications. /// /// If [fullRestart] is true, a hot restart is performed. Otherwise a hot reload /// is run instead. On web devices, this only performs a hot restart regardless of @@ -1812,7 +1812,7 @@ abstract class DevtoolsLauncher { Future close(); - /// When measuring devtools memory via addtional arguments, the launch process + /// When measuring devtools memory via additional arguments, the launch process /// will technically never complete. /// /// Us this as an indicator that the process has started. diff --git a/packages/flutter_tools/lib/src/runner/flutter_command.dart b/packages/flutter_tools/lib/src/runner/flutter_command.dart index 38ba052d20..92d10fa76f 100644 --- a/packages/flutter_tools/lib/src/runner/flutter_command.dart +++ b/packages/flutter_tools/lib/src/runner/flutter_command.dart @@ -789,7 +789,7 @@ abstract class FlutterCommand extends Command { argParser.addMultiOption( FlutterOptions.kAndroidProjectArgs, help: 'Additional arguments specified as key=value that are passed directly to the gradle ' - 'project via the -P flag. These can be accesed in build.gradle via the "project.property" API.', + 'project via the -P flag. These can be accessed in build.gradle via the "project.property" API.', splitCommas: false, abbr: 'P', ); @@ -897,7 +897,7 @@ abstract class FlutterCommand extends Command { 'ABI must be specified at a time with the "--target-platform" flag. When building for iOS, ' 'only the symbols from the arm64 architecture are used to analyze code size.\n' 'By default, the intermediate output files will be placed in a transient directory in the ' - 'build directory. This can be overriden with the "--${FlutterOptions.kCodeSizeDirectory}" option.\n' + 'build directory. This can be overridden with the "--${FlutterOptions.kCodeSizeDirectory}" option.\n' 'This flag cannot be combined with "--${FlutterOptions.kSplitDebugInfoOption}".' ); diff --git a/packages/flutter_tools/lib/src/vmservice.dart b/packages/flutter_tools/lib/src/vmservice.dart index 0bb62bf183..e4373632ee 100644 --- a/packages/flutter_tools/lib/src/vmservice.dart +++ b/packages/flutter_tools/lib/src/vmservice.dart @@ -185,7 +185,7 @@ Future setUpVmService( vm_service.VmService vmService ) async { // Each service registration requires a request to the attached VM service. Since the - // order of these requests does not mattter, store each future in a list and await + // order of these requests does not matter, store each future in a list and await // all at the end of this method. final List> registrationRequests = >[]; if (reloadSources != null) { diff --git a/packages/flutter_tools/lib/src/windows/uwptool.dart b/packages/flutter_tools/lib/src/windows/uwptool.dart index d60898b459..bf21c0821b 100644 --- a/packages/flutter_tools/lib/src/windows/uwptool.dart +++ b/packages/flutter_tools/lib/src/windows/uwptool.dart @@ -103,7 +103,7 @@ class UwpTool { return true; } - /// Installs a developer signing cerificate. + /// Installs a developer signing certificate. /// /// Returns `true` on success. Future installCertificate(String certificatePath) async { diff --git a/packages/flutter_tools/test/general.shard/android/adb_log_reader_test.dart b/packages/flutter_tools/test/general.shard/android/adb_log_reader_test.dart index b5098cf1db..f83a0b03ca 100644 --- a/packages/flutter_tools/test/general.shard/android/adb_log_reader_test.dart +++ b/packages/flutter_tools/test/general.shard/android/adb_log_reader_test.dart @@ -160,7 +160,7 @@ void main() { 'time', ], completer: Completer.sync(), - // Example stack trace from an incorrectly named application:name in the AndroidManfiest.xml + // Example stack trace from an incorrectly named application:name in the AndroidManifest.xml stdout: '$kDummyLine' '05-11 12:54:46.665 E/AndroidRuntime(11787): FATAL EXCEPTION: main\n' diff --git a/packages/flutter_tools/test/general.shard/android/android_device_port_forwarder_test.dart b/packages/flutter_tools/test/general.shard/android/android_device_port_forwarder_test.dart index da1023f4a5..f639c099cc 100644 --- a/packages/flutter_tools/test/general.shard/android/android_device_port_forwarder_test.dart +++ b/packages/flutter_tools/test/general.shard/android/android_device_port_forwarder_test.dart @@ -143,7 +143,7 @@ void main() { await forwarder.unforward(ForwardedPort(456, 23)); }); - testWithoutContext('failures to unforward port print error but are non-fatral', () async { + testWithoutContext('failures to unforward port print error but are non-fatal', () async { final FakeProcessManager processManager = FakeProcessManager.list([ const FakeCommand( command: ['adb', '-s', '1', 'forward', '--remove', 'tcp:456'], diff --git a/packages/flutter_tools/test/general.shard/android/android_emulator_test.dart b/packages/flutter_tools/test/general.shard/android/android_emulator_test.dart index 5718948831..61a51ace9d 100644 --- a/packages/flutter_tools/test/general.shard/android/android_emulator_test.dart +++ b/packages/flutter_tools/test/general.shard/android/android_emulator_test.dart @@ -145,13 +145,13 @@ void main() { }); testWithoutContext('succeeds with coldboot launch', () async { - final List kEmulatorLauchColdBootCommand = [ + final List kEmulatorLaunchColdBootCommand = [ ...kEmulatorLaunchCommand, '-no-snapshot-load' ]; final AndroidEmulator emulator = AndroidEmulator(emulatorID, processManager: FakeProcessManager.list([ - FakeCommand(command: kEmulatorLauchColdBootCommand), + FakeCommand(command: kEmulatorLaunchColdBootCommand), ]), androidSdk: mockSdk, logger: BufferLogger.test(), diff --git a/packages/flutter_tools/test/general.shard/android/android_workflow_test.dart b/packages/flutter_tools/test/general.shard/android/android_workflow_test.dart index 4902e6eb14..6f0ad4a010 100644 --- a/packages/flutter_tools/test/general.shard/android/android_workflow_test.dart +++ b/packages/flutter_tools/test/general.shard/android/android_workflow_test.dart @@ -367,7 +367,7 @@ Review licenses that have not been accepted (y/N)? ); // Test with valid SDK and valid build tools - // Will still be partial because AnroidSdk.findJavaBinary is static :( + // Will still be partial because AndroidSdk.findJavaBinary is static :( sdkVersion.sdkLevel = kAndroidSdkMinVersion; sdkVersion.buildToolsVersion = kAndroidSdkBuildToolsMinVersion; diff --git a/packages/flutter_tools/test/general.shard/base/io_test.dart b/packages/flutter_tools/test/general.shard/base/io_test.dart index e3717780ad..e6b1482b36 100644 --- a/packages/flutter_tools/test/general.shard/base/io_test.dart +++ b/packages/flutter_tools/test/general.shard/base/io_test.dart @@ -68,11 +68,11 @@ void main() { expect(io.ProcessSignal.sigint.toString(), ProcessSignal.sigint.toString()); }); - testWithoutContext('exit throws a StateError if called without being overriden', () { + testWithoutContext('exit throws a StateError if called without being overridden', () { expect(() => exit(0), throwsAssertionError); }); - testWithoutContext('exit does not throw a StateError if overriden', () { + testWithoutContext('exit does not throw a StateError if overridden', () { try { setExitFunctionForTests((int value) {}); 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 3ea9dd1ca9..a03a018822 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 @@ -227,7 +227,7 @@ void main() { testWithoutContext('Automatically cleans old outputs when build graph changes', () async { final BuildSystem buildSystem = setUpBuildSystem(fileSystem); - final TestTarget testTarget = TestTarget((Environment envionment) async { + final TestTarget testTarget = TestTarget((Environment environment) async { environment.buildDir.childFile('foo.out').createSync(); }) ..inputs = const [Source.pattern('{PROJECT_DIR}/foo.dart')] @@ -238,7 +238,7 @@ void main() { expect(environment.buildDir.childFile('foo.out'), exists); - final TestTarget testTarget2 = TestTarget((Environment envionment) async { + final TestTarget testTarget2 = TestTarget((Environment environment) async { environment.buildDir.childFile('bar.out').createSync(); }) ..inputs = const [Source.pattern('{PROJECT_DIR}/foo.dart')] @@ -250,7 +250,7 @@ void main() { expect(environment.buildDir.childFile('foo.out'), isNot(exists)); }); - testWithoutContext('Does not crash when filesytem and cache are out of sync', () async { + testWithoutContext('Does not crash when filesystem and cache are out of sync', () async { final BuildSystem buildSystem = setUpBuildSystem(fileSystem); final TestTarget testWithoutContextTarget = TestTarget((Environment environment) async { environment.buildDir.childFile('foo.out').createSync(); @@ -278,7 +278,7 @@ void main() { testWithoutContext('Reruns build if stamp is corrupted', () async { final BuildSystem buildSystem = setUpBuildSystem(fileSystem); - final TestTarget testWithoutContextTarget = TestTarget((Environment envionment) async { + final TestTarget testWithoutContextTarget = TestTarget((Environment environment) async { environment.buildDir.childFile('foo.out').createSync(); }) ..inputs = const [Source.pattern('{PROJECT_DIR}/foo.dart')] @@ -566,7 +566,7 @@ void main() { logger: BufferLogger.test(), fileSystem: fileSystem, ); - final Environment testEnvironmentProfle = Environment.test( + final Environment testEnvironmentProfile = Environment.test( fileSystem.currentDirectory, outputDir: fileSystem.directory('output'), defines: { @@ -590,11 +590,11 @@ void main() { // Verify debug output was created expect(fileSystem.file('output/debug'), exists); - await buildSystem.build(releaseTarget, testEnvironmentProfle); + await buildSystem.build(releaseTarget, testEnvironmentProfile); // Last build config is updated properly - expect(testEnvironmentProfle.outputDir.childFile('.last_build_id'), exists); - expect(testEnvironmentProfle.outputDir.childFile('.last_build_id').readAsStringSync(), + expect(testEnvironmentProfile.outputDir.childFile('.last_build_id'), exists); + expect(testEnvironmentProfile.outputDir.childFile('.last_build_id').readAsStringSync(), 'c20b3747fb2aa148cc4fd39bfbbd894f'); // Verify debug output removeds diff --git a/packages/flutter_tools/test/general.shard/build_system/targets/android_test.dart b/packages/flutter_tools/test/general.shard/build_system/targets/android_test.dart index c2fd17a0dc..fa67e55b19 100644 --- a/packages/flutter_tools/test/general.shard/build_system/targets/android_test.dart +++ b/packages/flutter_tools/test/general.shard/build_system/targets/android_test.dart @@ -35,7 +35,7 @@ void main() { artifacts = Artifacts.test(); }); - testWithoutContext('Android AOT targets has analyicsName', () { + testWithoutContext('Android AOT targets has analyticsName', () { expect(androidArmProfile.analyticsName, 'android_aot'); }); diff --git a/packages/flutter_tools/test/general.shard/project_file_invalidator_test.dart b/packages/flutter_tools/test/general.shard/project_file_invalidator_test.dart index ca9544b8a8..685c550f55 100644 --- a/packages/flutter_tools/test/general.shard/project_file_invalidator_test.dart +++ b/packages/flutter_tools/test/general.shard/project_file_invalidator_test.dart @@ -161,7 +161,7 @@ void main() { ); expect(nextInvalidationResult.uris, contains(Uri.parse('.packages'))); - // The PackagConfig should have been recreated too + // The PackageConfig should have been recreated too expect(nextInvalidationResult.packageConfig, isNot(invalidationResult.packageConfig)); }); diff --git a/packages/flutter_tools/test/general.shard/runner/flutter_command_runner_test.dart b/packages/flutter_tools/test/general.shard/runner/flutter_command_runner_test.dart index 847ead9875..e44b23693d 100644 --- a/packages/flutter_tools/test/general.shard/runner/flutter_command_runner_test.dart +++ b/packages/flutter_tools/test/general.shard/runner/flutter_command_runner_test.dart @@ -156,7 +156,7 @@ void main() { OutputPreferences: () => OutputPreferences.test(), }); - testUsingContext('Doesnt crash on invalid .packages file', () async { + testUsingContext("Doesn't crash on invalid .packages file", () async { final FlutterCommandRunner runner = createTestCommandRunner(DummyFlutterCommand()) as FlutterCommandRunner; fileSystem.file('pubspec.yaml').createSync(); fileSystem.file('.packages') diff --git a/packages/flutter_tools/test/general.shard/testbed_test.dart b/packages/flutter_tools/test/general.shard/testbed_test.dart index 0a15f55617..bbc98af4ca 100644 --- a/packages/flutter_tools/test/general.shard/testbed_test.dart +++ b/packages/flutter_tools/test/general.shard/testbed_test.dart @@ -82,7 +82,7 @@ void main() { }), throwsStateError); }); - test('Doesnt throw a StateError if Timer is left cleaned up', () async { + test("Doesn't throw a StateError if Timer is left cleaned up", () async { final Testbed testbed = Testbed(); await testbed.run(() async { diff --git a/packages/flutter_tools/test/general.shard/web/chrome_test.dart b/packages/flutter_tools/test/general.shard/web/chrome_test.dart index 48443d889a..b52f87e8e5 100644 --- a/packages/flutter_tools/test/general.shard/web/chrome_test.dart +++ b/packages/flutter_tools/test/general.shard/web/chrome_test.dart @@ -134,7 +134,7 @@ void main() { cacheDir: fileSystem.currentDirectory, ); - // Create cache dir that the Chrome launcher will atttempt to persist, and a file + // Create cache dir that the Chrome launcher will attempt to persist, and a file // that will thrown an exception when it is read. const String directoryPrefix = '/.tmp_rand0/flutter_tools_chrome_device.rand0/Default'; fileSystem.directory('$directoryPrefix/Local Storage') @@ -187,7 +187,7 @@ void main() { cacheDir: fileSystem.currentDirectory, ); - // Create cache dir that the Chrome launcher will atttempt to persist. + // Create cache dir that the Chrome launcher will attempt to persist. fileSystem.directory('/.tmp_rand0/flutter_tools_chrome_device.rand0/Default/Local Storage') .createSync(recursive: true); diff --git a/packages/flutter_tools/test/integration.shard/background_isolate_test.dart b/packages/flutter_tools/test/integration.shard/background_isolate_test.dart index 7d22368ad8..8285d418fe 100644 --- a/packages/flutter_tools/test/integration.shard/background_isolate_test.dart +++ b/packages/flutter_tools/test/integration.shard/background_isolate_test.dart @@ -30,13 +30,13 @@ void main() { final FlutterRunTestDriver flutter = FlutterRunTestDriver(tempDir); const String newBackgroundMessage = 'New Background'; - final Completer sawForgroundMessage = Completer.sync(); + final Completer sawForegroundMessage = Completer.sync(); final Completer sawBackgroundMessage = Completer.sync(); final Completer sawNewBackgroundMessage = Completer.sync(); final StreamSubscription subscription = flutter.stdout.listen((String line) { print('[LOG]:"$line"'); - if (line.contains('Main thread') && !sawForgroundMessage.isCompleted) { - sawForgroundMessage.complete(); + if (line.contains('Main thread') && !sawForegroundMessage.isCompleted) { + sawForegroundMessage.complete(); } if (line.contains('Isolate thread')) { sawBackgroundMessage.complete(); @@ -47,7 +47,7 @@ void main() { }, ); await flutter.run(); - await sawForgroundMessage.future; + await sawForegroundMessage.future; await sawBackgroundMessage.future; project.updateTestIsolatePhrase(newBackgroundMessage); diff --git a/packages/flutter_tools/test/integration.shard/xcode_backend_test.dart b/packages/flutter_tools/test/integration.shard/xcode_backend_test.dart index 84e1de70c3..8343715692 100644 --- a/packages/flutter_tools/test/integration.shard/xcode_backend_test.dart +++ b/packages/flutter_tools/test/integration.shard/xcode_backend_test.dart @@ -35,7 +35,7 @@ const Map localEngineDebugBuildModeRelease = { }; // Can't use a debug build with a profile engine. -const Map localEngineProfileBuildeModeRelease = { +const Map localEngineProfileBuildModeRelease = { 'SOURCE_ROOT': '../examples/hello_world', 'FLUTTER_ROOT': '../..', 'LOCAL_ENGINE': '/engine/src/out/ios_profile', @@ -71,7 +71,7 @@ void main() { await expectXcodeBackendFails(unknownConfiguration); await expectXcodeBackendFails(unknownFlutterBuildMode); await expectXcodeBackendFails(localEngineDebugBuildModeRelease); - await expectXcodeBackendFails(localEngineProfileBuildeModeRelease); + await expectXcodeBackendFails(localEngineProfileBuildModeRelease); }, skip: !io.Platform.isMacOS); test('Xcode backend warns archiving a non-release build.', () async { diff --git a/packages/flutter_tools/test/src/testbed.dart b/packages/flutter_tools/test/src/testbed.dart index 45315740a8..710fe1619c 100644 --- a/packages/flutter_tools/test/src/testbed.dart +++ b/packages/flutter_tools/test/src/testbed.dart @@ -50,7 +50,7 @@ final Map _testbedDefaults = { /// Manages interaction with the tool injection and runner system. /// /// The Testbed automatically injects reasonable defaults through the context -/// DI system such as a [BufferLogger] and a [MemoryFileSytem]. +/// DI system such as a [BufferLogger] and a [MemoryFileSystem]. /// /// Example: /// diff --git a/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart b/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart index 40c19aeb90..616dad3102 100644 --- a/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart +++ b/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart @@ -104,12 +104,12 @@ abstract class JsUrlStrategy { /// Moves forwards or backwards through the history stack. /// /// A negative [count] value causes a backward move in the history stack. And - /// a positive [count] value causs a forward move. + /// a positive [count] value causes a forward move. /// /// Examples: /// /// * `go(-2)` moves back 2 steps in history. - /// * `go(3)` moves forward 3 steps in hisotry. + /// * `go(3)` moves forward 3 steps in history. /// /// See: https://developer.mozilla.org/en-US/docs/Web/API/History/go external Future go(int count); diff --git a/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart b/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart index d07c54fec9..043c58e2ac 100644 --- a/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart +++ b/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart @@ -58,12 +58,12 @@ abstract class UrlStrategy { /// Moves forwards or backwards through the history stack. /// /// A negative [count] value causes a backward move in the history stack. And - /// a positive [count] value causs a forward move. + /// a positive [count] value causes a forward move. /// /// Examples: /// /// * `go(-2)` moves back 2 steps in history. - /// * `go(3)` moves forward 3 steps in hisotry. + /// * `go(3)` moves forward 3 steps in history. /// /// See: https://developer.mozilla.org/en-US/docs/Web/API/History/go Future go(int count); @@ -87,7 +87,7 @@ class HashUrlStrategy extends UrlStrategy { /// Creates an instance of [HashUrlStrategy]. /// /// The [PlatformLocation] parameter is useful for testing to mock out browser - /// interations. + /// interactions. const HashUrlStrategy( [this._platformLocation = const BrowserPlatformLocation()]); @@ -173,7 +173,7 @@ class PathUrlStrategy extends HashUrlStrategy { /// Creates an instance of [PathUrlStrategy]. /// /// The [PlatformLocation] parameter is useful for testing to mock out browser - /// interations. + /// interactions. PathUrlStrategy([ PlatformLocation _platformLocation = const BrowserPlatformLocation(), ]) : _basePath = stripTrailingSlash(extractPathname(checkBaseHref( @@ -255,12 +255,12 @@ abstract class PlatformLocation { /// Moves forwards or backwards through the history stack. /// /// A negative [count] value causes a backward move in the history stack. And - /// a positive [count] value causs a forward move. + /// a positive [count] value causes a forward move. /// /// Examples: /// /// * `go(-2)` moves back 2 steps in history. - /// * `go(3)` moves forward 3 steps in hisotry. + /// * `go(3)` moves forward 3 steps in history. /// /// See: https://developer.mozilla.org/en-US/docs/Web/API/History/go void go(int count); diff --git a/packages/fuchsia_remote_debug_protocol/test/fuchsia_remote_connection_test.dart b/packages/fuchsia_remote_debug_protocol/test/fuchsia_remote_connection_test.dart index 74db7a325d..957111c95f 100644 --- a/packages/fuchsia_remote_debug_protocol/test/fuchsia_remote_connection_test.dart +++ b/packages/fuchsia_remote_debug_protocol/test/fuchsia_remote_connection_test.dart @@ -189,7 +189,7 @@ void main() { expect(forwardedPorts[1].port, 1); expect(forwardedPorts[2].port, 2); - // VMs should be accessed via the alternate adddress given by + // VMs should be accessed via the alternate address given by // [fakePortForwardingFunction]. expect(uriConnections[0], Uri(scheme:'ws', host:'[fe80::1:2%25eno2]', port:0, path:'/ws')); diff --git a/packages/integration_test/lib/common.dart b/packages/integration_test/lib/common.dart index b765241ce3..a904072b64 100644 --- a/packages/integration_test/lib/common.dart +++ b/packages/integration_test/lib/common.dart @@ -211,7 +211,7 @@ class DriverTestMessage { /// These commands are either commands that WebDriver can execute or used /// for the communication between `integration_test` and the driver test. enum WebDriverCommandType { - /// Acknowlegement for the previously sent message. + /// Acknowledgement for the previously sent message. ack, /// No further WebDriver commands is requested by the app-side tests. diff --git a/packages/integration_test/test/binding_test.dart b/packages/integration_test/test/binding_test.dart index 5ea1ea0734..83d4813743 100644 --- a/packages/integration_test/test/binding_test.dart +++ b/packages/integration_test/test/binding_test.dart @@ -102,7 +102,7 @@ Future main() async { }); tearDownAll(() async { - // This part is outside the group so that `request` has been compeleted as + // This part is outside the group so that `request` has been completed as // part of the `tearDownAll` registered in the group during // `IntegrationTestWidgetsFlutterBinding` initialization. final Map response =