From e3a6a0da9145db79253cba86a91b293b45c4afe8 Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Wed, 7 Sep 2022 16:49:03 -0700 Subject: [PATCH] Annual spelling error fix (#111132) --- .../flutter/lib/src/cupertino/date_picker.dart | 2 +- packages/flutter/lib/src/cupertino/dialog.dart | 4 ++-- .../flutter/lib/src/cupertino/list_section.dart | 2 +- .../flutter/lib/src/cupertino/list_tile.dart | 14 +++++++------- .../flutter/lib/src/cupertino/magnifier.dart | 2 +- .../flutter/lib/src/cupertino/text_field.dart | 6 +++--- .../flutter/lib/src/foundation/assertions.dart | 4 ++-- packages/flutter/lib/src/foundation/binding.dart | 2 +- .../lib/src/foundation/persistent_hash_map.dart | 2 +- .../flutter/lib/src/material/data_table.dart | 2 +- packages/flutter/lib/src/material/dialog.dart | 2 +- .../lib/src/material/input_decorator.dart | 4 ++-- packages/flutter/lib/src/material/magnifier.dart | 2 +- .../lib/src/material/selectable_text.dart | 6 +++--- .../flutter/lib/src/material/selection_area.dart | 6 +++--- .../flutter/lib/src/material/text_field.dart | 6 +++--- .../flutter/lib/src/painting/edge_insets.dart | 2 +- .../flutter/lib/src/painting/image_provider.dart | 2 +- .../lib/src/services/hardware_keyboard.dart | 8 ++++---- .../lib/src/services/platform_channel.dart | 4 ++-- .../flutter/lib/src/services/spell_check.dart | 4 ++-- .../lib/src/services/system_channels.dart | 4 ++-- .../lib/src/services/text_editing_delta.dart | 2 +- .../flutter/lib/src/services/text_input.dart | 8 ++++---- .../flutter/lib/src/widgets/editable_text.dart | 2 +- packages/flutter/lib/src/widgets/framework.dart | 16 ++++++++-------- .../flutter/lib/src/widgets/image_filter.dart | 2 +- .../lib/src/widgets/reorderable_list.dart | 4 ++-- packages/flutter/lib/src/widgets/router.dart | 4 ++-- packages/flutter/lib/src/widgets/scrollbar.dart | 2 +- .../flutter/lib/src/widgets/snapshot_widget.dart | 2 +- packages/flutter/lib/src/widgets/tap_region.dart | 4 ++-- .../lib/src/widgets/text_editing_intents.dart | 2 +- .../flutter/lib/src/widgets/text_selection.dart | 2 +- .../flutter/lib/src/widgets/ticker_provider.dart | 2 +- .../lib/src/widgets/widget_inspector.dart | 2 +- packages/flutter/test/widgets/icon_test.dart | 2 +- .../flutter_tools/lib/src/commands/upgrade.dart | 2 +- 38 files changed, 74 insertions(+), 74 deletions(-) diff --git a/packages/flutter/lib/src/cupertino/date_picker.dart b/packages/flutter/lib/src/cupertino/date_picker.dart index 68ab6d56fb..19b0a256f7 100644 --- a/packages/flutter/lib/src/cupertino/date_picker.dart +++ b/packages/flutter/lib/src/cupertino/date_picker.dart @@ -208,7 +208,7 @@ enum _PickerColumnType { /// /// {@tool dartpad} /// This sample shows how to implement CupertinoDatePicker with different picker modes. -/// We can provide intiial dateTime value for the picker to display. When user changes +/// We can provide initial dateTime value for the picker to display. When user changes /// the drag the date or time wheels, the picker will call onDateTimeChanged callback. /// /// CupertinoDatePicker can be displayed directly on a screen or in a popup. diff --git a/packages/flutter/lib/src/cupertino/dialog.dart b/packages/flutter/lib/src/cupertino/dialog.dart index 1e4e6c05d7..0cec4f9fd7 100644 --- a/packages/flutter/lib/src/cupertino/dialog.dart +++ b/packages/flutter/lib/src/cupertino/dialog.dart @@ -158,7 +158,7 @@ bool _isInAccessibilityMode(BuildContext context) { /// {@youtube 560 315 https://www.youtube.com/watch?v=75CsnyRXf5I} /// /// An alert dialog informs the user about situations that require -/// acknowledgement. An alert dialog has an optional title, optional content, +/// acknowledgment. An alert dialog has an optional title, optional content, /// and an optional list of actions. The title is displayed above the content /// and the actions are displayed below the content. /// @@ -1589,7 +1589,7 @@ class _ActionButtonParentData extends MultiChildLayoutParentData { /// See also: /// /// * [CupertinoAlertDialog], a dialog that informs the user about situations -/// that require acknowledgement. +/// that require acknowledgment. class CupertinoDialogAction extends StatelessWidget { /// Creates an action for an iOS-style dialog. const CupertinoDialogAction({ diff --git a/packages/flutter/lib/src/cupertino/list_section.dart b/packages/flutter/lib/src/cupertino/list_section.dart index c7fdbb297d..bdcb445c86 100644 --- a/packages/flutter/lib/src/cupertino/list_section.dart +++ b/packages/flutter/lib/src/cupertino/list_section.dart @@ -216,7 +216,7 @@ class CupertinoListSection extends StatelessWidget { additionalDividerMargin = additionalDividerMargin ?? (hasLeading ? _kBaseAdditionalDividerMargin : 0.0); - /// Creates a section that mimicks standard "Inset Grouped" iOS list section. + /// Creates a section that mimics standard "Inset Grouped" iOS list section. /// /// The [CupertinoListSection.insetGrouped] constructor creates a round-edged /// and padded section that is seen in iOS Notes and Reminders apps. It creates diff --git a/packages/flutter/lib/src/cupertino/list_tile.dart b/packages/flutter/lib/src/cupertino/list_tile.dart index b1ea4d1ec5..94feeb37d8 100644 --- a/packages/flutter/lib/src/cupertino/list_tile.dart +++ b/packages/flutter/lib/src/cupertino/list_tile.dart @@ -45,7 +45,7 @@ enum _CupertinoListTileType { base, notched } /// take care of text wrapping. /// /// The size of [leading] is by default constrained to match the iOS size, -/// depending of the type of list tile. This can however be overriden by +/// depending of the type of list tile. This can however be overridden by /// providing [leadingSize]. The [trailing] widget is not constrained and is /// therefore a responsibility of the caller to ensure reasonable size of the /// [trailing] widget. @@ -60,7 +60,7 @@ enum _CupertinoListTileType { base, notched } /// /// The [onTap] callback provides an option to react to taps anywhere inside the /// list tile. This can be used to navigate routes and according to iOS -/// behaviour it should not be used for example to toggle the [CupertinoSwitch] +/// behavior it should not be used for example to toggle the [CupertinoSwitch] /// in the trailing widget. /// /// See also: @@ -91,9 +91,9 @@ class CupertinoListTile extends StatefulWidget { /// /// The [onTap] parameter is used to provide an action that is called when the /// tile is tapped. It is mainly used for navigating to a new route. It should - /// not be used to toggle a trailing [CupertinoSwitch] and similar usecases + /// not be used to toggle a trailing [CupertinoSwitch] and similar use cases /// because when tile is tapped, it switches the background color and remains - /// changed. This is according to iOS behaviour. + /// changed. This is according to iOS behavior. /// /// The [backgroundColor] provides a custom background color for the tile in /// a state before tapped. By default, it matches the theme's background color @@ -154,9 +154,9 @@ class CupertinoListTile extends StatefulWidget { /// /// The [onTap] parameter is used to provide an action that is called when the /// tile is tapped. It is mainly used for navigating to a new route. It should - /// not be used to toggle a trailing [CupertinoSwitch] and similar usecases + /// not be used to toggle a trailing [CupertinoSwitch] and similar use cases /// because when tile is tapped, it switches the background color and remains - /// changed. This is according to iOS behaviour. + /// changed. This is according to iOS behavior. /// /// The [backgroundColor] provides a custom background color for the tile in /// a state before tapped. By default, it matches the theme's background color @@ -218,7 +218,7 @@ class CupertinoListTile extends StatefulWidget { /// The [onTap] function is called when a user taps on [CupertinoListTile]. If /// left `null`, the [CupertinoListTile] will not react on taps. If this is a /// `Future Function()`, then the [CupertinoListTile] remains activated - /// until the returned future is awaited. This is according to iOS behaviour. + /// until the returned future is awaited. This is according to iOS behavior. /// However, if this function is a `void Function()`, then the tile is active /// only for the duration of invocation. final FutureOr Function()? onTap; diff --git a/packages/flutter/lib/src/cupertino/magnifier.dart b/packages/flutter/lib/src/cupertino/magnifier.dart index 128a7ce944..24f636b4fa 100644 --- a/packages/flutter/lib/src/cupertino/magnifier.dart +++ b/packages/flutter/lib/src/cupertino/magnifier.dart @@ -266,7 +266,7 @@ class CupertinoMagnifier extends StatelessWidget { /// The default size of the magnifier. /// /// This is public so that positioners can choose to depend on it, although - /// it is overrideable. + /// it is overridable. @visibleForTesting static const Size kDefaultSize = Size(80, 47.5); diff --git a/packages/flutter/lib/src/cupertino/text_field.dart b/packages/flutter/lib/src/cupertino/text_field.dart index 3b7bf0c8ba..5718c35174 100644 --- a/packages/flutter/lib/src/cupertino/text_field.dart +++ b/packages/flutter/lib/src/cupertino/text_field.dart @@ -182,7 +182,7 @@ class CupertinoTextField extends StatefulWidget { /// the number of lines. In this mode, the intrinsic height of the widget will /// grow as the number of lines of text grows. By default, it is `1`, meaning /// this is a single-line text field and will scroll horizontally when - /// overflown. [maxLines] must not be zero. + /// it overflows. [maxLines] must not be zero. /// /// The text cursor is not shown if [showCursor] is false or if [showCursor] /// is null (the default) and [readOnly] is true. @@ -351,7 +351,7 @@ class CupertinoTextField extends StatefulWidget { /// the number of lines. In this mode, the intrinsic height of the widget will /// grow as the number of lines of text grows. By default, it is `1`, meaning /// this is a single-line text field and will scroll horizontally when - /// overflown. [maxLines] must not be zero. + /// it overflows. [maxLines] must not be zero. /// /// The text cursor is not shown if [showCursor] is false or if [showCursor] /// is null (the default) and [readOnly] is true. @@ -794,7 +794,7 @@ class CupertinoTextField extends StatefulWidget { /// {@macro flutter.widgets.magnifier.TextMagnifierConfiguration.details} /// /// By default, builds a [CupertinoTextMagnifier] on iOS and Android nothing on all other - /// platforms. If it is desired to supress the magnifier, consider passing + /// platforms. If it is desired to suppress the magnifier, consider passing /// [TextMagnifierConfiguration.disabled]. /// // TODO(antholeole): https://github.com/flutter/flutter/issues/108041 diff --git a/packages/flutter/lib/src/foundation/assertions.dart b/packages/flutter/lib/src/foundation/assertions.dart index 3143a022bd..c43d958de3 100644 --- a/packages/flutter/lib/src/foundation/assertions.dart +++ b/packages/flutter/lib/src/foundation/assertions.dart @@ -1042,7 +1042,7 @@ class FlutterError extends Error with DiagnosticableTreeMixin implements Asserti /// Adds a stack filtering function to [defaultStackFilter]. /// /// For example, the framework adds common patterns of element building to - /// elide tree-walking patterns in the stacktrace. + /// elide tree-walking patterns in the stack trace. /// /// Added filters are checked in order of addition. The first matching filter /// wins, and subsequent filters will not be checked. @@ -1232,7 +1232,7 @@ void debugPrintStack({StackTrace? stackTrace, String? label, int? maxFrames}) { class DiagnosticsStackTrace extends DiagnosticsBlock { /// Creates a diagnostic for a stack trace. /// - /// [name] describes a name the stacktrace is given, e.g. + /// [name] describes a name the stack trace is given, e.g. /// `When the exception was thrown, this was the stack`. /// [stackFilter] provides an optional filter to use to filter which frames /// are included. If no filter is specified, [FlutterError.defaultStackFilter] diff --git a/packages/flutter/lib/src/foundation/binding.dart b/packages/flutter/lib/src/foundation/binding.dart index 69c869006e..ba23cb3d42 100644 --- a/packages/flutter/lib/src/foundation/binding.dart +++ b/packages/flutter/lib/src/foundation/binding.dart @@ -110,7 +110,7 @@ typedef ServiceExtensionCallback = Future> Function(Map _makeArray(int length) { return List.filled(length, null); } -/// This helper method becomes an noop when compiled with dart2js on +/// This helper method becomes an no-op when compiled with dart2js on /// with high level of optimizations enabled. @pragma('dart2js:tryInline') @pragma('dart2js:as:trust') diff --git a/packages/flutter/lib/src/material/data_table.dart b/packages/flutter/lib/src/material/data_table.dart index 443c20a8b9..df8d3b4f34 100644 --- a/packages/flutter/lib/src/material/data_table.dart +++ b/packages/flutter/lib/src/material/data_table.dart @@ -300,7 +300,7 @@ class DataCell { /// Called if the user cancels a tap was started on cell. /// - /// If non-null, cancelling the tap gesture will invoke this callback. + /// If non-null, canceling the tap gesture will invoke this callback. /// If null (including [onTap], [onDoubleTap] and [onLongPress]), /// tapping the cell will attempt to select the /// row (if [DataRow.onSelectChanged] is provided). diff --git a/packages/flutter/lib/src/material/dialog.dart b/packages/flutter/lib/src/material/dialog.dart index 405a579afb..88df4399c5 100644 --- a/packages/flutter/lib/src/material/dialog.dart +++ b/packages/flutter/lib/src/material/dialog.dart @@ -225,7 +225,7 @@ class Dialog extends StatelessWidget { /// A Material Design alert dialog. /// /// An alert dialog (also known as a basic dialog) informs the user about -/// situations that require acknowledgement. An alert dialog has an optional +/// situations that require acknowledgment. An alert dialog has an optional /// title and an optional list of actions. The title is displayed above the /// content and the actions are displayed below the content. /// diff --git a/packages/flutter/lib/src/material/input_decorator.dart b/packages/flutter/lib/src/material/input_decorator.dart index cceb50d175..76e21deadb 100644 --- a/packages/flutter/lib/src/material/input_decorator.dart +++ b/packages/flutter/lib/src/material/input_decorator.dart @@ -2892,7 +2892,7 @@ class InputDecoration { /// [icon] and above the widgets that contain [helperText], /// [errorText], and [counterText]. /// - /// The prefix icon aligment can be changed using [Align] with a fixed `widthFactor` and + /// The prefix icon alignment can be changed using [Align] with a fixed `widthFactor` and /// `heightFactor`. /// /// {@tool dartpad} @@ -3014,7 +3014,7 @@ class InputDecoration { /// [icon] and above the widgets that contain [helperText], /// [errorText], and [counterText]. /// - /// The suffix icon aligment can be changed using [Align] with a fixed `widthFactor` and + /// The suffix icon alignment can be changed using [Align] with a fixed `widthFactor` and /// `heightFactor`. /// /// {@tool dartpad} diff --git a/packages/flutter/lib/src/material/magnifier.dart b/packages/flutter/lib/src/material/magnifier.dart index 818081b740..d25cad7f12 100644 --- a/packages/flutter/lib/src/material/magnifier.dart +++ b/packages/flutter/lib/src/material/magnifier.dart @@ -286,7 +286,7 @@ class Magnifier extends StatelessWidget { /// The vertical distance that the magnifier should be above the focal point. /// /// [kStandardVerticalFocalPointShift] is an unmodifiable constant so that positioning of this - /// [Magnifier] can be done with a garunteed size, as opposed to an estimate. + /// [Magnifier] can be done with a guaranteed size, as opposed to an estimate. @visibleForTesting static const double kStandardVerticalFocalPointShift = 22; diff --git a/packages/flutter/lib/src/material/selectable_text.dart b/packages/flutter/lib/src/material/selectable_text.dart index f2ea90cca9..30e988ce7f 100644 --- a/packages/flutter/lib/src/material/selectable_text.dart +++ b/packages/flutter/lib/src/material/selectable_text.dart @@ -440,9 +440,9 @@ class SelectableText extends StatefulWidget { /// /// {@macro flutter.widgets.magnifier.TextMagnifierConfiguration.details} /// - /// By default, builds a [CupertinoTextMagnifier] on iOS and [TextMagnifier] on - /// Android, and builds nothing on all other platforms. If it is desired to supress - /// the magnifier, consider passing [TextMagnifierConfiguration.disabled]. + /// By default, builds a [CupertinoTextMagnifier] on iOS and [TextMagnifier] + /// on Android, and builds nothing on all other platforms. If it is desired to + /// suppress the magnifier, consider passing [TextMagnifierConfiguration.disabled]. final TextMagnifierConfiguration? magnifierConfiguration; @override diff --git a/packages/flutter/lib/src/material/selection_area.dart b/packages/flutter/lib/src/material/selection_area.dart index 7c5daafb86..a02190c028 100644 --- a/packages/flutter/lib/src/material/selection_area.dart +++ b/packages/flutter/lib/src/material/selection_area.dart @@ -52,9 +52,9 @@ class SelectionArea extends StatefulWidget { /// /// {@macro flutter.widgets.magnifier.TextMagnifierConfiguration.details} /// - /// By default, builds a [CupertinoTextMagnifier] on iOS and [TextMagnifier] on - /// Android, and builds nothing on all other platforms. If it is desired to supress - /// the magnifier, consider passing [TextMagnifierConfiguration.disabled]. + /// By default, builds a [CupertinoTextMagnifier] on iOS and [TextMagnifier] + /// on Android, and builds nothing on all other platforms. If it is desired to + /// suppress the magnifier, consider passing [TextMagnifierConfiguration.disabled]. final TextMagnifierConfiguration? magnifierConfiguration; /// {@macro flutter.widgets.Focus.focusNode} diff --git a/packages/flutter/lib/src/material/text_field.dart b/packages/flutter/lib/src/material/text_field.dart index 19b69c2062..a17c0cef7d 100644 --- a/packages/flutter/lib/src/material/text_field.dart +++ b/packages/flutter/lib/src/material/text_field.dart @@ -404,9 +404,9 @@ class TextField extends StatefulWidget { /// /// {@macro flutter.widgets.magnifier.TextMagnifierConfiguration.details} /// - /// By default, builds a [CupertinoTextMagnifier] on iOS and [TextMagnifier] on - /// Android, and builds nothing on all other platforms. If it is desired to supress - /// the magnifier, consider passing [TextMagnifierConfiguration.disabled]. + /// By default, builds a [CupertinoTextMagnifier] on iOS and [TextMagnifier] + /// on Android, and builds nothing on all other platforms. If it is desired to + /// suppress the magnifier, consider passing [TextMagnifierConfiguration.disabled]. final TextMagnifierConfiguration? magnifierConfiguration; /// Controls the text being edited. diff --git a/packages/flutter/lib/src/painting/edge_insets.dart b/packages/flutter/lib/src/painting/edge_insets.dart index c2c38691cd..756d79656d 100644 --- a/packages/flutter/lib/src/painting/edge_insets.dart +++ b/packages/flutter/lib/src/painting/edge_insets.dart @@ -678,7 +678,7 @@ class EdgeInsetsDirectional extends EdgeInsetsGeometry { /// /// This is equivalent to [EdgeInsets.symmetric], since the inset is the same /// with either [TextDirection]. This constructor is just a convenience for - /// type compatibilty. + /// type compatibility. /// /// {@tool snippet} /// Eight pixel margin above and below, no horizontal margins: diff --git a/packages/flutter/lib/src/painting/image_provider.dart b/packages/flutter/lib/src/painting/image_provider.dart index cfb5a7f98a..51bc1c6301 100644 --- a/packages/flutter/lib/src/painting/image_provider.dart +++ b/packages/flutter/lib/src/painting/image_provider.dart @@ -223,7 +223,7 @@ typedef DecoderBufferCallback = Future Function(ui.ImmutableBuffer buf /// image is decoded and ready to display, or when an error occurs. /// 2. Obtain the key for the image using [obtainKey]. /// Calling this method can throw exceptions into the zone asynchronously -/// or into the callstack synchronously. To handle that, an error handler +/// or into the call stack synchronously. To handle that, an error handler /// is created that catches both synchronous and asynchronous errors, to /// make sure errors can be routed to the correct consumers. /// The error handler is passed on to [resolveStreamForKey] and the diff --git a/packages/flutter/lib/src/services/hardware_keyboard.dart b/packages/flutter/lib/src/services/hardware_keyboard.dart index 224b12074d..025b198165 100644 --- a/packages/flutter/lib/src/services/hardware_keyboard.dart +++ b/packages/flutter/lib/src/services/hardware_keyboard.dart @@ -146,7 +146,7 @@ abstract class KeyEvent with Diagnosticable { /// keystroke, if any. /// /// This will only return a character if this keystroke, combined with any - /// preceding keystroke(s), generats a character, and only on a "key down" + /// preceding keystroke(s), generates a character, and only on a "key down" /// event. It will return null if no character has been generated by the /// keystroke (e.g. a "dead" or "combining" key), or if the corresponding key /// is a key without a visual representation, such as a modifier key or a @@ -178,7 +178,7 @@ abstract class KeyEvent with Diagnosticable { /// might be converted to a Flutter down event when necessary.) /// /// A [synthesized] event is created without a source native event in order to - /// synthronize key states. For example, if the native platform shows that a + /// synchronize key states. For example, if the native platform shows that a /// shift key that was previously held has been released somehow without the /// key up event dispatched (probably due to loss of focus), a synthesized key /// up event will be added to regularized the event stream. @@ -790,7 +790,7 @@ class KeyEventManager { /// and calls the original callback in between (or not at all.) /// /// Patching [keyMessageHandler] can not be reverted. You should always assume - /// that another component might haved patched it before you and after you. + /// that another component might have patched it before you and after you. /// This means that you might want to write your own global notification /// manager, to which callbacks can be added and removed. /// @@ -804,7 +804,7 @@ class KeyEventManager { /// /// The app prints out any key events that are not handled by the app body. /// Try typing something in the first text field. These key presses are not - /// handled by `Shorcuts` and will be sent to the fallback handler and printed + /// handled by `Shortcuts` and will be sent to the fallback handler and printed /// out. Now try some text shortcuts, such as Ctrl+A. The KeyA press is /// handled as a shortcut, and is not sent to the fallback handler and so is /// not printed out. diff --git a/packages/flutter/lib/src/services/platform_channel.dart b/packages/flutter/lib/src/services/platform_channel.dart index 47b609b3de..66f1e7e8e8 100644 --- a/packages/flutter/lib/src/services/platform_channel.dart +++ b/packages/flutter/lib/src/services/platform_channel.dart @@ -268,10 +268,10 @@ class MethodChannel { /// [binaryMessenger]'s [BinaryMessenger.send] method. /// /// If the result is null and `missingOk` is true, this returns null. (This is - /// the behaviour of [OptionalMethodChannel.invokeMethod].) + /// the behavior of [OptionalMethodChannel.invokeMethod].) /// /// If the result is null and `missingOk` is false, this throws a - /// [MissingPluginException]. (This is the behaviour of + /// [MissingPluginException]. (This is the behavior of /// [MethodChannel.invokeMethod].) /// /// Otherwise, the result is decoded using the [codec]'s diff --git a/packages/flutter/lib/src/services/spell_check.dart b/packages/flutter/lib/src/services/spell_check.dart index 785d967cbd..c8ff5d0320 100644 --- a/packages/flutter/lib/src/services/spell_check.dart +++ b/packages/flutter/lib/src/services/spell_check.dart @@ -108,10 +108,10 @@ abstract class SpellCheckService { /// See also: /// /// * [SpellCheckService], the service that this implements that may be -/// overriden for use by [EditableText]. +/// overridden for use by [EditableText]. /// * [EditableText], which may use this service to fetch results. class DefaultSpellCheckService implements SpellCheckService { - /// Creates service to spell check text input by default via communcication + /// Creates service to spell check text input by default via communication /// over the spell check [MethodChannel]. DefaultSpellCheckService() { spellCheckChannel = SystemChannels.spellCheck; diff --git a/packages/flutter/lib/src/services/system_channels.dart b/packages/flutter/lib/src/services/system_channels.dart index 8d5851c58f..d8b661166f 100644 --- a/packages/flutter/lib/src/services/system_channels.dart +++ b/packages/flutter/lib/src/services/system_channels.dart @@ -227,7 +227,7 @@ class SystemChannels { /// This channel exposes the spell check framework for supported platforms. /// Currently supported on Android only. /// - /// Spell check requests are intiated by `SpellCheck.initiateSpellCheck`. + /// Spell check requests are initiated by `SpellCheck.initiateSpellCheck`. /// These requests may either be completed or canceled. If the request is /// completed, the shell side will respond with the results of the request. /// Otherwise, the shell side will respond with null. @@ -238,7 +238,7 @@ class SystemChannels { /// * `SpellCheck.initiateSpellCheck`: Sends request for specified text to be /// spell checked and returns the result, either a [List] /// representing the spell check results of the text or null if the request - /// was cancelled. The arguments are the [String] to be spell checked + /// was canceled. The arguments are the [String] to be spell checked /// and the [Locale] for the text to be spell checked with. static const MethodChannel spellCheck = OptionalMethodChannel( 'flutter/spellcheck', diff --git a/packages/flutter/lib/src/services/text_editing_delta.dart b/packages/flutter/lib/src/services/text_editing_delta.dart index aeded5e09f..f4415bb335 100644 --- a/packages/flutter/lib/src/services/text_editing_delta.dart +++ b/packages/flutter/lib/src/services/text_editing_delta.dart @@ -247,7 +247,7 @@ abstract class TextEditingDelta { TextEditingValue apply(TextEditingValue value); } -/// A structure representing an insertion of a single/or contigous sequence of +/// A structure representing an insertion of a single/or contiguous sequence of /// characters at some offset of an editing state. @immutable class TextEditingDeltaInsertion extends TextEditingDelta { diff --git a/packages/flutter/lib/src/services/text_input.dart b/packages/flutter/lib/src/services/text_input.dart index 937d97dffd..180ef4bf27 100644 --- a/packages/flutter/lib/src/services/text_input.dart +++ b/packages/flutter/lib/src/services/text_input.dart @@ -827,11 +827,11 @@ class TextEditingValue { /// prediction changes. /// /// Composing regions can also be used for performing multistage input, which - /// is typically used by IMEs designed for phoetic keyboard to enter + /// is typically used by IMEs designed for phonetic keyboard to enter /// ideographic symbols. As an example, many CJK keyboards require the user to - /// enter a latin alphabet sequence and then convert it to CJK characters. On + /// enter a Latin alphabet sequence and then convert it to CJK characters. On /// iOS, the default software keyboards do not have a dedicated view to show - /// the unfinished latin sequence, so it's displayed directly in the text + /// the unfinished Latin sequence, so it's displayed directly in the text /// field, inside of a composing region. /// /// The composing region should typically only be changed by the IME, or the @@ -879,7 +879,7 @@ class TextEditingValue { /// /// This method also adjusts the selection range and the composing range of the /// resulting [TextEditingValue], such that they point to the same substrings - /// as the correspoinding ranges in the original [TextEditingValue]. For + /// as the corresponding ranges in the original [TextEditingValue]. For /// example, if the original [TextEditingValue] is "Hello world" with the word /// "world" selected, replacing "Hello" with a different string using this /// method will not change the selected word. diff --git a/packages/flutter/lib/src/widgets/editable_text.dart b/packages/flutter/lib/src/widgets/editable_text.dart index 8fa7f9fca9..91524177ce 100644 --- a/packages/flutter/lib/src/widgets/editable_text.dart +++ b/packages/flutter/lib/src/widgets/editable_text.dart @@ -4189,7 +4189,7 @@ class _ScribblePlaceholder extends WidgetSpan { } } -/// An interface for retriving the logical text boundary (left-closed-right-open) +/// An interface for retrieving the logical text boundary (left-closed-right-open) /// at a given location in a document. /// /// Depending on the implementation of the [_TextBoundary], the input diff --git a/packages/flutter/lib/src/widgets/framework.dart b/packages/flutter/lib/src/widgets/framework.dart index bc801ae777..d083391f49 100644 --- a/packages/flutter/lib/src/widgets/framework.dart +++ b/packages/flutter/lib/src/widgets/framework.dart @@ -459,7 +459,7 @@ abstract class Widget extends DiagnosticableTree { /// Flutter would short-circuit most of the rebuild work. /// {@endtemplate} /// -/// This video gives more explainations on why `const` constructors are important +/// This video gives more explanations on why `const` constructors are important /// and why a [Widget] is better than a helper method. /// /// {@youtube 560 315 https://www.youtube.com/watch?v=IOyq-eTRhvo} @@ -657,7 +657,7 @@ abstract class StatelessWidget extends Widget { /// subtree and re-use it each time it can be used. To do this, simply assign /// a widget to a `final` state variable and re-use it in the build method. It /// is massively more efficient for a widget to be re-used than for a new (but -/// identically-configured) widget to be created. Another caching stragegy +/// identically-configured) widget to be created. Another caching strategy /// consists in extracting the mutable part of the widget into a [StatefulWidget] /// which accepts a child parameter. /// @@ -682,7 +682,7 @@ abstract class StatelessWidget extends Widget { /// /// {@macro flutter.flutter.widgets.framework.prefer_const_over_helper} /// -/// This video gives more explainations on why `const` constructors are important +/// This video gives more explanations on why `const` constructors are important /// and why a [Widget] is better than a helper method. /// /// {@youtube 560 315 https://www.youtube.com/watch?v=IOyq-eTRhvo} @@ -855,7 +855,7 @@ typedef StateSetter = void Function(VoidCallback fn); /// * At this point, the [State] object is fully initialized and the framework /// might call its [build] method any number of times to obtain a /// description of the user interface for this subtree. [State] objects can -/// spontaneously request to rebuild their subtree by callings their +/// spontaneously request to rebuild their subtree by calling their /// [setState] method, which indicates that some of their internal state /// has changed in a way that might impact the user interface in this /// subtree. @@ -3263,7 +3263,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext { /// /// Avoid overriding this field on [Element] subtypes to provide a more /// specific widget type (i.e. [StatelessElement] and [StatelessWidget]). - /// Instead, cast at any callsites where the more specific type is required. + /// Instead, cast at any call sites where the more specific type is required. /// This avoids significant cast overhead on the getter which is accessed /// throughout the framework internals during the build phase - and for which /// the more specific type information is not used. @@ -4585,7 +4585,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext { /// called to mark this element dirty, by [mount] when the element is first /// built, and by [update] when the widget has changed. /// - /// The method will only rebuild if [dirty] is true. To rebuild irregardless + /// The method will only rebuild if [dirty] is true. To rebuild regardless /// of the [dirty] flag, set `force` to true. Forcing a rebuild is convenient /// from [update], during which [dirty] is false. @pragma('vm:prefer-inline') @@ -5518,7 +5518,7 @@ class InheritedElement extends ProxyElement { /// [RenderObjectElement] objects spend much of their time acting as /// intermediaries between their [widget] and their [renderObject]. It is /// generally recommended against specializing the [widget] getter and -/// instead casting at the various callsites to avoid adding overhead +/// instead casting at the various call sites to avoid adding overhead /// outside of this particular implementation. /// /// ```dart @@ -5800,7 +5800,7 @@ abstract class RenderObjectElement extends Element { /// and then returns the new child list. /// /// During this function the `oldChildren` list must not be modified. If the - /// caller wishes to remove elements from `oldChildren` re-entrantly while + /// caller wishes to remove elements from `oldChildren` reentrantly while /// this function is on the stack, the caller can supply a `forgottenChildren` /// argument, which can be modified while this function is on the stack. /// Whenever this function reads from `oldChildren`, this function first diff --git a/packages/flutter/lib/src/widgets/image_filter.dart b/packages/flutter/lib/src/widgets/image_filter.dart index 67f9ae459f..09648211e3 100644 --- a/packages/flutter/lib/src/widgets/image_filter.dart +++ b/packages/flutter/lib/src/widgets/image_filter.dart @@ -46,7 +46,7 @@ class ImageFiltered extends SingleChildRenderObjectWidget { /// The image filter to apply to the child of this widget. final ImageFilter imageFilter; - /// Whether or not to apply the image filter opation to the child of this + /// Whether or not to apply the image filter operation to the child of this /// widget. /// /// Prefer setting enabled to `false` instead of creating a "no-op" filter diff --git a/packages/flutter/lib/src/widgets/reorderable_list.dart b/packages/flutter/lib/src/widgets/reorderable_list.dart index 4c0cee78c2..9158013aa8 100644 --- a/packages/flutter/lib/src/widgets/reorderable_list.dart +++ b/packages/flutter/lib/src/widgets/reorderable_list.dart @@ -344,7 +344,7 @@ class ReorderableListState extends State { /// the pointer down [event]. /// /// The given [recognizer] will be used to recognize and start the drag - /// item tracking and lead to either an item reorder, or a cancelled drag. + /// item tracking and lead to either an item reorder, or a canceled drag. /// The list will take ownership of the returned recognizer and will dispose /// it when it is no longer needed. /// @@ -637,7 +637,7 @@ class SliverReorderableListState extends State with Ticke /// the pointer down [event]. /// /// The given [recognizer] will be used to recognize and start the drag - /// item tracking and lead to either an item reorder, or a cancelled drag. + /// item tracking and lead to either an item reorder, or a canceled drag. /// /// Most applications will not use this directly, but will wrap the item /// (or part of the item, like a drag handle) in either a diff --git a/packages/flutter/lib/src/widgets/router.dart b/packages/flutter/lib/src/widgets/router.dart index 69a0576e9d..27428948a9 100644 --- a/packages/flutter/lib/src/widgets/router.dart +++ b/packages/flutter/lib/src/widgets/router.dart @@ -818,7 +818,7 @@ class _RouterScope extends InheritedWidget { /// See also: /// /// * [Listenable] and its subclasses, which provide a similar mechanism for -/// one-way signalling. +/// one-way signaling. class _CallbackHookProvider { final ObserverList> _callbacks = ObserverList>(); @@ -1203,7 +1203,7 @@ abstract class RouteInformationParser { /// /// The input [BuildContext] can be used for looking up [InheritedWidget]s /// If one uses [BuildContext.dependOnInheritedWidgetOfExactType], a - /// dependency will be created. The [Router] will reparse the + /// dependency will be created. The [Router] will re-parse the /// [RouteInformation] from its [RouteInformationProvider] if the dependency /// notifies its listeners. /// diff --git a/packages/flutter/lib/src/widgets/scrollbar.dart b/packages/flutter/lib/src/widgets/scrollbar.dart index f157e9f693..0297421ee4 100644 --- a/packages/flutter/lib/src/widgets/scrollbar.dart +++ b/packages/flutter/lib/src/widgets/scrollbar.dart @@ -934,7 +934,7 @@ class ScrollbarPainter extends ChangeNotifier implements CustomPainter { /// /// {@tool dartpad} /// This sample shows how to disable the default Scrollbar for a [Scrollable] -/// widget to avoid duplicate Scrollbars when runnung on desktop platforms. +/// widget to avoid duplicate Scrollbars when running on desktop platforms. /// /// ** See code in examples/api/lib/widgets/scrollbar/raw_scrollbar.desktop.0.dart ** /// {@end-tool} diff --git a/packages/flutter/lib/src/widgets/snapshot_widget.dart b/packages/flutter/lib/src/widgets/snapshot_widget.dart index 9ce0e73bd5..9583cdc4f5 100644 --- a/packages/flutter/lib/src/widgets/snapshot_widget.dart +++ b/packages/flutter/lib/src/widgets/snapshot_widget.dart @@ -70,7 +70,7 @@ class SnapshotController extends ChangeNotifier { } } -/// A widget that can replace its child with a snapshoted version of the child. +/// A widget that can replace its child with a snapshotted version of the child. /// /// A snapshot is a frozen texture-backed representation of all child pictures /// and layers stored as a [ui.Image]. diff --git a/packages/flutter/lib/src/widgets/tap_region.dart b/packages/flutter/lib/src/widgets/tap_region.dart index 661c7144b4..3fd49021f2 100644 --- a/packages/flutter/lib/src/widgets/tap_region.dart +++ b/packages/flutter/lib/src/widgets/tap_region.dart @@ -93,7 +93,7 @@ abstract class TapRegionRegistry { /// encompass the entire area where taps should be monitored. This is typically /// around the entire app. If the entire app isn't covered, then taps outside of /// the `TapRegionSurface` will be ignored and no [TapRegion.onTapOutside] calls -/// wil be made for those events. The [WidgetsApp], [MaterialApp] and +/// will be made for those events. The [WidgetsApp], [MaterialApp] and /// [CupertinoApp] automatically include a `TapRegionSurface` around their /// entire app. /// @@ -155,7 +155,7 @@ class TapRegionSurface extends SingleChildRenderObjectWidget { /// to encompass the entire area where taps should be monitored. This is /// typically around the entire app. If the entire app isn't covered, then taps /// outside of the `RenderTapRegionSurface` will be ignored and no -/// [RenderTapRegion.onTapOutside] calls wil be made for those events. The +/// [RenderTapRegion.onTapOutside] calls will be made for those events. The /// [WidgetsApp], [MaterialApp] and [CupertinoApp] automatically include a /// `RenderTapRegionSurface` around the entire app. /// diff --git a/packages/flutter/lib/src/widgets/text_editing_intents.dart b/packages/flutter/lib/src/widgets/text_editing_intents.dart index 493e6fb711..7ae9738757 100644 --- a/packages/flutter/lib/src/widgets/text_editing_intents.dart +++ b/packages/flutter/lib/src/widgets/text_editing_intents.dart @@ -28,7 +28,7 @@ abstract class DirectionalTextEditingIntent extends Intent { /// operation from the current caret location towards the end of the document. /// /// Unless otherwise specified by the recipient of this intent, this parameter - /// uses the logical order of characters in the string to determind the + /// uses the logical order of characters in the string to determine the /// direction, and is not affected by the writing direction of the text. final bool forward; } diff --git a/packages/flutter/lib/src/widgets/text_selection.dart b/packages/flutter/lib/src/widgets/text_selection.dart index 00fc689e94..3c7d3b972a 100644 --- a/packages/flutter/lib/src/widgets/text_selection.dart +++ b/packages/flutter/lib/src/widgets/text_selection.dart @@ -2592,6 +2592,6 @@ enum ClipboardStatus { /// waiting to receive the clipboard contents for the first time. unknown, - /// The content on the clipboard is not pasteable, such as when it is empty. + /// The content on the clipboard is not pastable, such as when it is empty. notPasteable, } diff --git a/packages/flutter/lib/src/widgets/ticker_provider.dart b/packages/flutter/lib/src/widgets/ticker_provider.dart index 56202ba8c2..d5e006cf02 100644 --- a/packages/flutter/lib/src/widgets/ticker_provider.dart +++ b/packages/flutter/lib/src/widgets/ticker_provider.dart @@ -75,7 +75,7 @@ class TickerMode extends StatefulWidget { /// the `context` and the [TickerMode] and the widget owning the `context` /// does not rebuild when the ticker mode changes from true to false or vice /// versa. This is preferable when the ticker mode does not impact what is - /// currently rendered on screen, e.g. because it is ony used to mute/unmute a + /// currently rendered on screen, e.g. because it is only used to mute/unmute a /// [Ticker]. Since no dependency is established, the widget owning the /// `context` is also not informed when it is moved to a new location in the /// tree where it may have a different [TickerMode] ancestor. When this diff --git a/packages/flutter/lib/src/widgets/widget_inspector.dart b/packages/flutter/lib/src/widgets/widget_inspector.dart index cbbfa8f5d4..29a7771c4f 100644 --- a/packages/flutter/lib/src/widgets/widget_inspector.dart +++ b/packages/flutter/lib/src/widgets/widget_inspector.dart @@ -1531,7 +1531,7 @@ mixin WidgetInspectorService { } /// Returns JSON representing the chain of [DiagnosticsNode] instances from - /// root of thee tree to the [Element] or [RenderObject] matching `id`. + /// root of the tree to the [Element] or [RenderObject] matching `id`. /// /// The JSON contains all information required to display a tree view with /// all nodes other than nodes along the path collapsed. diff --git a/packages/flutter/test/widgets/icon_test.dart b/packages/flutter/test/widgets/icon_test.dart index 1e59741044..93cb51147d 100644 --- a/packages/flutter/test/widgets/icon_test.dart +++ b/packages/flutter/test/widgets/icon_test.dart @@ -269,7 +269,7 @@ void main() { ]); }); - testWidgets('Theme-level fill, weight, grade, and optical size can be overriden', (WidgetTester tester) async { + testWidgets('Theme-level fill, weight, grade, and optical size can be overridden', (WidgetTester tester) async { await tester.pumpWidget( const Directionality( textDirection: TextDirection.ltr, diff --git a/packages/flutter_tools/lib/src/commands/upgrade.dart b/packages/flutter_tools/lib/src/commands/upgrade.dart index 4841f29e37..446fdb2724 100644 --- a/packages/flutter_tools/lib/src/commands/upgrade.dart +++ b/packages/flutter_tools/lib/src/commands/upgrade.dart @@ -303,7 +303,7 @@ class UpgradeCommandRunner { /// Update the engine repository and precache all artifacts. /// /// Check for and download any engine and pkg/ updates. We run the 'flutter' - /// shell script re-entrantly here so that it will download the updated + /// shell script reentrantly here so that it will download the updated /// Dart and so forth if necessary. Future precacheArtifacts() async { globals.printStatus('');