Unverified Commit e3a6a0da authored by Greg Spencer's avatar Greg Spencer Committed by GitHub

Annual spelling error fix (#111132)

parent 31709953
...@@ -208,7 +208,7 @@ enum _PickerColumnType { ...@@ -208,7 +208,7 @@ enum _PickerColumnType {
/// ///
/// {@tool dartpad} /// {@tool dartpad}
/// This sample shows how to implement CupertinoDatePicker with different picker modes. /// 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. /// 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. /// CupertinoDatePicker can be displayed directly on a screen or in a popup.
......
...@@ -158,7 +158,7 @@ bool _isInAccessibilityMode(BuildContext context) { ...@@ -158,7 +158,7 @@ bool _isInAccessibilityMode(BuildContext context) {
/// {@youtube 560 315 https://www.youtube.com/watch?v=75CsnyRXf5I} /// {@youtube 560 315 https://www.youtube.com/watch?v=75CsnyRXf5I}
/// ///
/// An alert dialog informs the user about situations that require /// 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 an optional list of actions. The title is displayed above the content
/// and the actions are displayed below the content. /// and the actions are displayed below the content.
/// ///
...@@ -1589,7 +1589,7 @@ class _ActionButtonParentData extends MultiChildLayoutParentData { ...@@ -1589,7 +1589,7 @@ class _ActionButtonParentData extends MultiChildLayoutParentData {
/// See also: /// See also:
/// ///
/// * [CupertinoAlertDialog], a dialog that informs the user about situations /// * [CupertinoAlertDialog], a dialog that informs the user about situations
/// that require acknowledgement. /// that require acknowledgment.
class CupertinoDialogAction extends StatelessWidget { class CupertinoDialogAction extends StatelessWidget {
/// Creates an action for an iOS-style dialog. /// Creates an action for an iOS-style dialog.
const CupertinoDialogAction({ const CupertinoDialogAction({
......
...@@ -216,7 +216,7 @@ class CupertinoListSection extends StatelessWidget { ...@@ -216,7 +216,7 @@ class CupertinoListSection extends StatelessWidget {
additionalDividerMargin = additionalDividerMargin ?? additionalDividerMargin = additionalDividerMargin ??
(hasLeading ? _kBaseAdditionalDividerMargin : 0.0); (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 /// The [CupertinoListSection.insetGrouped] constructor creates a round-edged
/// and padded section that is seen in iOS Notes and Reminders apps. It creates /// and padded section that is seen in iOS Notes and Reminders apps. It creates
......
...@@ -45,7 +45,7 @@ enum _CupertinoListTileType { base, notched } ...@@ -45,7 +45,7 @@ enum _CupertinoListTileType { base, notched }
/// take care of text wrapping. /// take care of text wrapping.
/// ///
/// The size of [leading] is by default constrained to match the iOS size, /// 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 /// providing [leadingSize]. The [trailing] widget is not constrained and is
/// therefore a responsibility of the caller to ensure reasonable size of the /// therefore a responsibility of the caller to ensure reasonable size of the
/// [trailing] widget. /// [trailing] widget.
...@@ -60,7 +60,7 @@ enum _CupertinoListTileType { base, notched } ...@@ -60,7 +60,7 @@ enum _CupertinoListTileType { base, notched }
/// ///
/// The [onTap] callback provides an option to react to taps anywhere inside the /// 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 /// 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. /// in the trailing widget.
/// ///
/// See also: /// See also:
...@@ -91,9 +91,9 @@ class CupertinoListTile extends StatefulWidget { ...@@ -91,9 +91,9 @@ class CupertinoListTile extends StatefulWidget {
/// ///
/// The [onTap] parameter is used to provide an action that is called when the /// 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 /// 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 /// 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 /// The [backgroundColor] provides a custom background color for the tile in
/// a state before tapped. By default, it matches the theme's background color /// a state before tapped. By default, it matches the theme's background color
...@@ -154,9 +154,9 @@ class CupertinoListTile extends StatefulWidget { ...@@ -154,9 +154,9 @@ class CupertinoListTile extends StatefulWidget {
/// ///
/// The [onTap] parameter is used to provide an action that is called when the /// 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 /// 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 /// 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 /// The [backgroundColor] provides a custom background color for the tile in
/// a state before tapped. By default, it matches the theme's background color /// a state before tapped. By default, it matches the theme's background color
...@@ -218,7 +218,7 @@ class CupertinoListTile extends StatefulWidget { ...@@ -218,7 +218,7 @@ class CupertinoListTile extends StatefulWidget {
/// The [onTap] function is called when a user taps on [CupertinoListTile]. If /// 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 /// left `null`, the [CupertinoListTile] will not react on taps. If this is a
/// `Future<void> Function()`, then the [CupertinoListTile] remains activated /// `Future<void> 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 /// However, if this function is a `void Function()`, then the tile is active
/// only for the duration of invocation. /// only for the duration of invocation.
final FutureOr<void> Function()? onTap; final FutureOr<void> Function()? onTap;
......
...@@ -266,7 +266,7 @@ class CupertinoMagnifier extends StatelessWidget { ...@@ -266,7 +266,7 @@ class CupertinoMagnifier extends StatelessWidget {
/// The default size of the magnifier. /// The default size of the magnifier.
/// ///
/// This is public so that positioners can choose to depend on it, although /// This is public so that positioners can choose to depend on it, although
/// it is overrideable. /// it is overridable.
@visibleForTesting @visibleForTesting
static const Size kDefaultSize = Size(80, 47.5); static const Size kDefaultSize = Size(80, 47.5);
......
...@@ -182,7 +182,7 @@ class CupertinoTextField extends StatefulWidget { ...@@ -182,7 +182,7 @@ class CupertinoTextField extends StatefulWidget {
/// the number of lines. In this mode, the intrinsic height of the widget will /// 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 /// 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 /// 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] /// The text cursor is not shown if [showCursor] is false or if [showCursor]
/// is null (the default) and [readOnly] is true. /// is null (the default) and [readOnly] is true.
...@@ -351,7 +351,7 @@ class CupertinoTextField extends StatefulWidget { ...@@ -351,7 +351,7 @@ class CupertinoTextField extends StatefulWidget {
/// the number of lines. In this mode, the intrinsic height of the widget will /// 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 /// 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 /// 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] /// The text cursor is not shown if [showCursor] is false or if [showCursor]
/// is null (the default) and [readOnly] is true. /// is null (the default) and [readOnly] is true.
...@@ -794,7 +794,7 @@ class CupertinoTextField extends StatefulWidget { ...@@ -794,7 +794,7 @@ class CupertinoTextField extends StatefulWidget {
/// {@macro flutter.widgets.magnifier.TextMagnifierConfiguration.details} /// {@macro flutter.widgets.magnifier.TextMagnifierConfiguration.details}
/// ///
/// By default, builds a [CupertinoTextMagnifier] on iOS and Android nothing on all other /// 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]. /// [TextMagnifierConfiguration.disabled].
/// ///
// TODO(antholeole): https://github.com/flutter/flutter/issues/108041 // TODO(antholeole): https://github.com/flutter/flutter/issues/108041
......
...@@ -1042,7 +1042,7 @@ class FlutterError extends Error with DiagnosticableTreeMixin implements Asserti ...@@ -1042,7 +1042,7 @@ class FlutterError extends Error with DiagnosticableTreeMixin implements Asserti
/// Adds a stack filtering function to [defaultStackFilter]. /// Adds a stack filtering function to [defaultStackFilter].
/// ///
/// For example, the framework adds common patterns of element building to /// 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 /// Added filters are checked in order of addition. The first matching filter
/// wins, and subsequent filters will not be checked. /// wins, and subsequent filters will not be checked.
...@@ -1232,7 +1232,7 @@ void debugPrintStack({StackTrace? stackTrace, String? label, int? maxFrames}) { ...@@ -1232,7 +1232,7 @@ void debugPrintStack({StackTrace? stackTrace, String? label, int? maxFrames}) {
class DiagnosticsStackTrace extends DiagnosticsBlock { class DiagnosticsStackTrace extends DiagnosticsBlock {
/// Creates a diagnostic for a stack trace. /// 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`. /// `When the exception was thrown, this was the stack`.
/// [stackFilter] provides an optional filter to use to filter which frames /// [stackFilter] provides an optional filter to use to filter which frames
/// are included. If no filter is specified, [FlutterError.defaultStackFilter] /// are included. If no filter is specified, [FlutterError.defaultStackFilter]
......
...@@ -110,7 +110,7 @@ typedef ServiceExtensionCallback = Future<Map<String, dynamic>> Function(Map<Str ...@@ -110,7 +110,7 @@ typedef ServiceExtensionCallback = Future<Map<String, dynamic>> Function(Map<Str
/// layer that it wishes to expose, and should have an /// layer that it wishes to expose, and should have an
/// `ensureInitialized` method that constructs the class if that /// `ensureInitialized` method that constructs the class if that
/// layer's mixin's `_instance` field is null. This allows the binding /// layer's mixin's `_instance` field is null. This allows the binding
/// to be overriden by developers who have more specific needs, while /// to be overridden by developers who have more specific needs, while
/// still allowing other code to call `ensureInitialized` when a binding /// still allowing other code to call `ensureInitialized` when a binding
/// is needed. /// is needed.
/// ///
......
...@@ -390,7 +390,7 @@ List<Object?> _makeArray(int length) { ...@@ -390,7 +390,7 @@ List<Object?> _makeArray(int length) {
return List<Object?>.filled(length, null); return List<Object?>.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. /// with high level of optimizations enabled.
@pragma('dart2js:tryInline') @pragma('dart2js:tryInline')
@pragma('dart2js:as:trust') @pragma('dart2js:as:trust')
......
...@@ -300,7 +300,7 @@ class DataCell { ...@@ -300,7 +300,7 @@ class DataCell {
/// Called if the user cancels a tap was started on cell. /// 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]), /// If null (including [onTap], [onDoubleTap] and [onLongPress]),
/// tapping the cell will attempt to select the /// tapping the cell will attempt to select the
/// row (if [DataRow.onSelectChanged] is provided). /// row (if [DataRow.onSelectChanged] is provided).
......
...@@ -225,7 +225,7 @@ class Dialog extends StatelessWidget { ...@@ -225,7 +225,7 @@ class Dialog extends StatelessWidget {
/// A Material Design alert dialog. /// A Material Design alert dialog.
/// ///
/// An alert dialog (also known as a basic dialog) informs the user about /// 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 /// title and an optional list of actions. The title is displayed above the
/// content and the actions are displayed below the content. /// content and the actions are displayed below the content.
/// ///
......
...@@ -2892,7 +2892,7 @@ class InputDecoration { ...@@ -2892,7 +2892,7 @@ class InputDecoration {
/// [icon] and above the widgets that contain [helperText], /// [icon] and above the widgets that contain [helperText],
/// [errorText], and [counterText]. /// [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`. /// `heightFactor`.
/// ///
/// {@tool dartpad} /// {@tool dartpad}
...@@ -3014,7 +3014,7 @@ class InputDecoration { ...@@ -3014,7 +3014,7 @@ class InputDecoration {
/// [icon] and above the widgets that contain [helperText], /// [icon] and above the widgets that contain [helperText],
/// [errorText], and [counterText]. /// [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`. /// `heightFactor`.
/// ///
/// {@tool dartpad} /// {@tool dartpad}
......
...@@ -286,7 +286,7 @@ class Magnifier extends StatelessWidget { ...@@ -286,7 +286,7 @@ class Magnifier extends StatelessWidget {
/// The vertical distance that the magnifier should be above the focal point. /// The vertical distance that the magnifier should be above the focal point.
/// ///
/// [kStandardVerticalFocalPointShift] is an unmodifiable constant so that positioning of this /// [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 @visibleForTesting
static const double kStandardVerticalFocalPointShift = 22; static const double kStandardVerticalFocalPointShift = 22;
......
...@@ -440,9 +440,9 @@ class SelectableText extends StatefulWidget { ...@@ -440,9 +440,9 @@ class SelectableText extends StatefulWidget {
/// ///
/// {@macro flutter.widgets.magnifier.TextMagnifierConfiguration.details} /// {@macro flutter.widgets.magnifier.TextMagnifierConfiguration.details}
/// ///
/// By default, builds a [CupertinoTextMagnifier] on iOS and [TextMagnifier] on /// By default, builds a [CupertinoTextMagnifier] on iOS and [TextMagnifier]
/// Android, and builds nothing on all other platforms. If it is desired to supress /// on Android, and builds nothing on all other platforms. If it is desired to
/// the magnifier, consider passing [TextMagnifierConfiguration.disabled]. /// suppress the magnifier, consider passing [TextMagnifierConfiguration.disabled].
final TextMagnifierConfiguration? magnifierConfiguration; final TextMagnifierConfiguration? magnifierConfiguration;
@override @override
......
...@@ -52,9 +52,9 @@ class SelectionArea extends StatefulWidget { ...@@ -52,9 +52,9 @@ class SelectionArea extends StatefulWidget {
/// ///
/// {@macro flutter.widgets.magnifier.TextMagnifierConfiguration.details} /// {@macro flutter.widgets.magnifier.TextMagnifierConfiguration.details}
/// ///
/// By default, builds a [CupertinoTextMagnifier] on iOS and [TextMagnifier] on /// By default, builds a [CupertinoTextMagnifier] on iOS and [TextMagnifier]
/// Android, and builds nothing on all other platforms. If it is desired to supress /// on Android, and builds nothing on all other platforms. If it is desired to
/// the magnifier, consider passing [TextMagnifierConfiguration.disabled]. /// suppress the magnifier, consider passing [TextMagnifierConfiguration.disabled].
final TextMagnifierConfiguration? magnifierConfiguration; final TextMagnifierConfiguration? magnifierConfiguration;
/// {@macro flutter.widgets.Focus.focusNode} /// {@macro flutter.widgets.Focus.focusNode}
......
...@@ -404,9 +404,9 @@ class TextField extends StatefulWidget { ...@@ -404,9 +404,9 @@ class TextField extends StatefulWidget {
/// ///
/// {@macro flutter.widgets.magnifier.TextMagnifierConfiguration.details} /// {@macro flutter.widgets.magnifier.TextMagnifierConfiguration.details}
/// ///
/// By default, builds a [CupertinoTextMagnifier] on iOS and [TextMagnifier] on /// By default, builds a [CupertinoTextMagnifier] on iOS and [TextMagnifier]
/// Android, and builds nothing on all other platforms. If it is desired to supress /// on Android, and builds nothing on all other platforms. If it is desired to
/// the magnifier, consider passing [TextMagnifierConfiguration.disabled]. /// suppress the magnifier, consider passing [TextMagnifierConfiguration.disabled].
final TextMagnifierConfiguration? magnifierConfiguration; final TextMagnifierConfiguration? magnifierConfiguration;
/// Controls the text being edited. /// Controls the text being edited.
......
...@@ -678,7 +678,7 @@ class EdgeInsetsDirectional extends EdgeInsetsGeometry { ...@@ -678,7 +678,7 @@ class EdgeInsetsDirectional extends EdgeInsetsGeometry {
/// ///
/// This is equivalent to [EdgeInsets.symmetric], since the inset is the same /// This is equivalent to [EdgeInsets.symmetric], since the inset is the same
/// with either [TextDirection]. This constructor is just a convenience for /// with either [TextDirection]. This constructor is just a convenience for
/// type compatibilty. /// type compatibility.
/// ///
/// {@tool snippet} /// {@tool snippet}
/// Eight pixel margin above and below, no horizontal margins: /// Eight pixel margin above and below, no horizontal margins:
......
...@@ -223,7 +223,7 @@ typedef DecoderBufferCallback = Future<ui.Codec> Function(ui.ImmutableBuffer buf ...@@ -223,7 +223,7 @@ typedef DecoderBufferCallback = Future<ui.Codec> Function(ui.ImmutableBuffer buf
/// image is decoded and ready to display, or when an error occurs. /// image is decoded and ready to display, or when an error occurs.
/// 2. Obtain the key for the image using [obtainKey]. /// 2. Obtain the key for the image using [obtainKey].
/// Calling this method can throw exceptions into the zone asynchronously /// 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 /// is created that catches both synchronous and asynchronous errors, to
/// make sure errors can be routed to the correct consumers. /// make sure errors can be routed to the correct consumers.
/// The error handler is passed on to [resolveStreamForKey] and the /// The error handler is passed on to [resolveStreamForKey] and the
......
...@@ -146,7 +146,7 @@ abstract class KeyEvent with Diagnosticable { ...@@ -146,7 +146,7 @@ abstract class KeyEvent with Diagnosticable {
/// keystroke, if any. /// keystroke, if any.
/// ///
/// This will only return a character if this keystroke, combined with 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 /// 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 /// 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 /// is a key without a visual representation, such as a modifier key or a
...@@ -178,7 +178,7 @@ abstract class KeyEvent with Diagnosticable { ...@@ -178,7 +178,7 @@ abstract class KeyEvent with Diagnosticable {
/// might be converted to a Flutter down event when necessary.) /// might be converted to a Flutter down event when necessary.)
/// ///
/// A [synthesized] event is created without a source native event in order to /// 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 /// 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 /// key up event dispatched (probably due to loss of focus), a synthesized key
/// up event will be added to regularized the event stream. /// up event will be added to regularized the event stream.
...@@ -790,7 +790,7 @@ class KeyEventManager { ...@@ -790,7 +790,7 @@ class KeyEventManager {
/// and calls the original callback in between (or not at all.) /// and calls the original callback in between (or not at all.)
/// ///
/// Patching [keyMessageHandler] can not be reverted. You should always assume /// 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 /// This means that you might want to write your own global notification
/// manager, to which callbacks can be added and removed. /// manager, to which callbacks can be added and removed.
/// ///
...@@ -804,7 +804,7 @@ class KeyEventManager { ...@@ -804,7 +804,7 @@ class KeyEventManager {
/// ///
/// The app prints out any key events that are not handled by the app body. /// 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 /// 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 /// 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 /// handled as a shortcut, and is not sent to the fallback handler and so is
/// not printed out. /// not printed out.
......
...@@ -268,10 +268,10 @@ class MethodChannel { ...@@ -268,10 +268,10 @@ class MethodChannel {
/// [binaryMessenger]'s [BinaryMessenger.send] method. /// [binaryMessenger]'s [BinaryMessenger.send] method.
/// ///
/// If the result is null and `missingOk` is true, this returns null. (This is /// 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 /// 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].) /// [MethodChannel.invokeMethod].)
/// ///
/// Otherwise, the result is decoded using the [codec]'s /// Otherwise, the result is decoded using the [codec]'s
......
...@@ -108,10 +108,10 @@ abstract class SpellCheckService { ...@@ -108,10 +108,10 @@ abstract class SpellCheckService {
/// See also: /// See also:
/// ///
/// * [SpellCheckService], the service that this implements that may be /// * [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. /// * [EditableText], which may use this service to fetch results.
class DefaultSpellCheckService implements SpellCheckService { 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]. /// over the spell check [MethodChannel].
DefaultSpellCheckService() { DefaultSpellCheckService() {
spellCheckChannel = SystemChannels.spellCheck; spellCheckChannel = SystemChannels.spellCheck;
......
...@@ -227,7 +227,7 @@ class SystemChannels { ...@@ -227,7 +227,7 @@ class SystemChannels {
/// This channel exposes the spell check framework for supported platforms. /// This channel exposes the spell check framework for supported platforms.
/// Currently supported on Android only. /// 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 /// These requests may either be completed or canceled. If the request is
/// completed, the shell side will respond with the results of the request. /// completed, the shell side will respond with the results of the request.
/// Otherwise, the shell side will respond with null. /// Otherwise, the shell side will respond with null.
...@@ -238,7 +238,7 @@ class SystemChannels { ...@@ -238,7 +238,7 @@ class SystemChannels {
/// * `SpellCheck.initiateSpellCheck`: Sends request for specified text to be /// * `SpellCheck.initiateSpellCheck`: Sends request for specified text to be
/// spell checked and returns the result, either a [List<SuggestionSpan>] /// spell checked and returns the result, either a [List<SuggestionSpan>]
/// representing the spell check results of the text or null if the request /// 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. /// and the [Locale] for the text to be spell checked with.
static const MethodChannel spellCheck = OptionalMethodChannel( static const MethodChannel spellCheck = OptionalMethodChannel(
'flutter/spellcheck', 'flutter/spellcheck',
......
...@@ -247,7 +247,7 @@ abstract class TextEditingDelta { ...@@ -247,7 +247,7 @@ abstract class TextEditingDelta {
TextEditingValue apply(TextEditingValue value); 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. /// characters at some offset of an editing state.
@immutable @immutable
class TextEditingDeltaInsertion extends TextEditingDelta { class TextEditingDeltaInsertion extends TextEditingDelta {
......
...@@ -827,11 +827,11 @@ class TextEditingValue { ...@@ -827,11 +827,11 @@ class TextEditingValue {
/// prediction changes. /// prediction changes.
/// ///
/// Composing regions can also be used for performing multistage input, which /// 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 /// 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 /// 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. /// field, inside of a composing region.
/// ///
/// The composing region should typically only be changed by the IME, or the /// The composing region should typically only be changed by the IME, or the
...@@ -879,7 +879,7 @@ class TextEditingValue { ...@@ -879,7 +879,7 @@ class TextEditingValue {
/// ///
/// This method also adjusts the selection range and the composing range of the /// This method also adjusts the selection range and the composing range of the
/// resulting [TextEditingValue], such that they point to the same substrings /// 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 /// example, if the original [TextEditingValue] is "Hello world" with the word
/// "world" selected, replacing "Hello" with a different string using this /// "world" selected, replacing "Hello" with a different string using this
/// method will not change the selected word. /// method will not change the selected word.
......
...@@ -4189,7 +4189,7 @@ class _ScribblePlaceholder extends WidgetSpan { ...@@ -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. /// at a given location in a document.
/// ///
/// Depending on the implementation of the [_TextBoundary], the input /// Depending on the implementation of the [_TextBoundary], the input
......
...@@ -459,7 +459,7 @@ abstract class Widget extends DiagnosticableTree { ...@@ -459,7 +459,7 @@ abstract class Widget extends DiagnosticableTree {
/// Flutter would short-circuit most of the rebuild work. /// Flutter would short-circuit most of the rebuild work.
/// {@endtemplate} /// {@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. /// and why a [Widget] is better than a helper method.
/// ///
/// {@youtube 560 315 https://www.youtube.com/watch?v=IOyq-eTRhvo} /// {@youtube 560 315 https://www.youtube.com/watch?v=IOyq-eTRhvo}
...@@ -657,7 +657,7 @@ abstract class StatelessWidget extends Widget { ...@@ -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 /// 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 /// 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 /// 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] /// consists in extracting the mutable part of the widget into a [StatefulWidget]
/// which accepts a child parameter. /// which accepts a child parameter.
/// ///
...@@ -682,7 +682,7 @@ abstract class StatelessWidget extends Widget { ...@@ -682,7 +682,7 @@ abstract class StatelessWidget extends Widget {
/// ///
/// {@macro flutter.flutter.widgets.framework.prefer_const_over_helper} /// {@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. /// and why a [Widget] is better than a helper method.
/// ///
/// {@youtube 560 315 https://www.youtube.com/watch?v=IOyq-eTRhvo} /// {@youtube 560 315 https://www.youtube.com/watch?v=IOyq-eTRhvo}
...@@ -855,7 +855,7 @@ typedef StateSetter = void Function(VoidCallback fn); ...@@ -855,7 +855,7 @@ typedef StateSetter = void Function(VoidCallback fn);
/// * At this point, the [State] object is fully initialized and the framework /// * At this point, the [State] object is fully initialized and the framework
/// might call its [build] method any number of times to obtain a /// might call its [build] method any number of times to obtain a
/// description of the user interface for this subtree. [State] objects can /// 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 /// [setState] method, which indicates that some of their internal state
/// has changed in a way that might impact the user interface in this /// has changed in a way that might impact the user interface in this
/// subtree. /// subtree.
...@@ -3263,7 +3263,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext { ...@@ -3263,7 +3263,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
/// ///
/// Avoid overriding this field on [Element] subtypes to provide a more /// Avoid overriding this field on [Element] subtypes to provide a more
/// specific widget type (i.e. [StatelessElement] and [StatelessWidget]). /// 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 /// This avoids significant cast overhead on the getter which is accessed
/// throughout the framework internals during the build phase - and for which /// throughout the framework internals during the build phase - and for which
/// the more specific type information is not used. /// the more specific type information is not used.
...@@ -4585,7 +4585,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext { ...@@ -4585,7 +4585,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
/// called to mark this element dirty, by [mount] when the element is first /// called to mark this element dirty, by [mount] when the element is first
/// built, and by [update] when the widget has changed. /// 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 /// of the [dirty] flag, set `force` to true. Forcing a rebuild is convenient
/// from [update], during which [dirty] is false. /// from [update], during which [dirty] is false.
@pragma('vm:prefer-inline') @pragma('vm:prefer-inline')
...@@ -5518,7 +5518,7 @@ class InheritedElement extends ProxyElement { ...@@ -5518,7 +5518,7 @@ class InheritedElement extends ProxyElement {
/// [RenderObjectElement] objects spend much of their time acting as /// [RenderObjectElement] objects spend much of their time acting as
/// intermediaries between their [widget] and their [renderObject]. It is /// intermediaries between their [widget] and their [renderObject]. It is
/// generally recommended against specializing the [widget] getter and /// 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. /// outside of this particular implementation.
/// ///
/// ```dart /// ```dart
...@@ -5800,7 +5800,7 @@ abstract class RenderObjectElement extends Element { ...@@ -5800,7 +5800,7 @@ abstract class RenderObjectElement extends Element {
/// and then returns the new child list. /// and then returns the new child list.
/// ///
/// During this function the `oldChildren` list must not be modified. If the /// 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` /// this function is on the stack, the caller can supply a `forgottenChildren`
/// argument, which can be modified while this function is on the stack. /// argument, which can be modified while this function is on the stack.
/// Whenever this function reads from `oldChildren`, this function first /// Whenever this function reads from `oldChildren`, this function first
......
...@@ -46,7 +46,7 @@ class ImageFiltered extends SingleChildRenderObjectWidget { ...@@ -46,7 +46,7 @@ class ImageFiltered extends SingleChildRenderObjectWidget {
/// The image filter to apply to the child of this widget. /// The image filter to apply to the child of this widget.
final ImageFilter imageFilter; 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. /// widget.
/// ///
/// Prefer setting enabled to `false` instead of creating a "no-op" filter /// Prefer setting enabled to `false` instead of creating a "no-op" filter
......
...@@ -344,7 +344,7 @@ class ReorderableListState extends State<ReorderableList> { ...@@ -344,7 +344,7 @@ class ReorderableListState extends State<ReorderableList> {
/// the pointer down [event]. /// the pointer down [event].
/// ///
/// The given [recognizer] will be used to recognize and start the drag /// 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 /// The list will take ownership of the returned recognizer and will dispose
/// it when it is no longer needed. /// it when it is no longer needed.
/// ///
...@@ -637,7 +637,7 @@ class SliverReorderableListState extends State<SliverReorderableList> with Ticke ...@@ -637,7 +637,7 @@ class SliverReorderableListState extends State<SliverReorderableList> with Ticke
/// the pointer down [event]. /// the pointer down [event].
/// ///
/// The given [recognizer] will be used to recognize and start the drag /// 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 /// Most applications will not use this directly, but will wrap the item
/// (or part of the item, like a drag handle) in either a /// (or part of the item, like a drag handle) in either a
......
...@@ -818,7 +818,7 @@ class _RouterScope extends InheritedWidget { ...@@ -818,7 +818,7 @@ class _RouterScope extends InheritedWidget {
/// See also: /// See also:
/// ///
/// * [Listenable] and its subclasses, which provide a similar mechanism for /// * [Listenable] and its subclasses, which provide a similar mechanism for
/// one-way signalling. /// one-way signaling.
class _CallbackHookProvider<T> { class _CallbackHookProvider<T> {
final ObserverList<ValueGetter<T>> _callbacks = ObserverList<ValueGetter<T>>(); final ObserverList<ValueGetter<T>> _callbacks = ObserverList<ValueGetter<T>>();
...@@ -1203,7 +1203,7 @@ abstract class RouteInformationParser<T> { ...@@ -1203,7 +1203,7 @@ abstract class RouteInformationParser<T> {
/// ///
/// The input [BuildContext] can be used for looking up [InheritedWidget]s /// The input [BuildContext] can be used for looking up [InheritedWidget]s
/// If one uses [BuildContext.dependOnInheritedWidgetOfExactType], a /// 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 /// [RouteInformation] from its [RouteInformationProvider] if the dependency
/// notifies its listeners. /// notifies its listeners.
/// ///
......
...@@ -934,7 +934,7 @@ class ScrollbarPainter extends ChangeNotifier implements CustomPainter { ...@@ -934,7 +934,7 @@ class ScrollbarPainter extends ChangeNotifier implements CustomPainter {
/// ///
/// {@tool dartpad} /// {@tool dartpad}
/// This sample shows how to disable the default Scrollbar for a [Scrollable] /// 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 ** /// ** See code in examples/api/lib/widgets/scrollbar/raw_scrollbar.desktop.0.dart **
/// {@end-tool} /// {@end-tool}
......
...@@ -70,7 +70,7 @@ class SnapshotController extends ChangeNotifier { ...@@ -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 /// A snapshot is a frozen texture-backed representation of all child pictures
/// and layers stored as a [ui.Image]. /// and layers stored as a [ui.Image].
......
...@@ -93,7 +93,7 @@ abstract class TapRegionRegistry { ...@@ -93,7 +93,7 @@ abstract class TapRegionRegistry {
/// encompass the entire area where taps should be monitored. This is typically /// 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 /// 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 /// 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 /// [CupertinoApp] automatically include a `TapRegionSurface` around their
/// entire app. /// entire app.
/// ///
...@@ -155,7 +155,7 @@ class TapRegionSurface extends SingleChildRenderObjectWidget { ...@@ -155,7 +155,7 @@ class TapRegionSurface extends SingleChildRenderObjectWidget {
/// to encompass the entire area where taps should be monitored. This is /// 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 /// typically around the entire app. If the entire app isn't covered, then taps
/// outside of the `RenderTapRegionSurface` will be ignored and no /// 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 /// [WidgetsApp], [MaterialApp] and [CupertinoApp] automatically include a
/// `RenderTapRegionSurface` around the entire app. /// `RenderTapRegionSurface` around the entire app.
/// ///
......
...@@ -28,7 +28,7 @@ abstract class DirectionalTextEditingIntent extends Intent { ...@@ -28,7 +28,7 @@ abstract class DirectionalTextEditingIntent extends Intent {
/// operation from the current caret location towards the end of the document. /// operation from the current caret location towards the end of the document.
/// ///
/// Unless otherwise specified by the recipient of this intent, this parameter /// 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. /// direction, and is not affected by the writing direction of the text.
final bool forward; final bool forward;
} }
......
...@@ -2592,6 +2592,6 @@ enum ClipboardStatus { ...@@ -2592,6 +2592,6 @@ enum ClipboardStatus {
/// waiting to receive the clipboard contents for the first time. /// waiting to receive the clipboard contents for the first time.
unknown, 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, notPasteable,
} }
...@@ -75,7 +75,7 @@ class TickerMode extends StatefulWidget { ...@@ -75,7 +75,7 @@ class TickerMode extends StatefulWidget {
/// the `context` and the [TickerMode] and the widget owning the `context` /// 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 /// 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 /// 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 /// [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 /// `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 /// tree where it may have a different [TickerMode] ancestor. When this
......
...@@ -1531,7 +1531,7 @@ mixin WidgetInspectorService { ...@@ -1531,7 +1531,7 @@ mixin WidgetInspectorService {
} }
/// Returns JSON representing the chain of [DiagnosticsNode] instances from /// 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 /// The JSON contains all information required to display a tree view with
/// all nodes other than nodes along the path collapsed. /// all nodes other than nodes along the path collapsed.
......
...@@ -269,7 +269,7 @@ void main() { ...@@ -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( await tester.pumpWidget(
const Directionality( const Directionality(
textDirection: TextDirection.ltr, textDirection: TextDirection.ltr,
......
...@@ -303,7 +303,7 @@ class UpgradeCommandRunner { ...@@ -303,7 +303,7 @@ class UpgradeCommandRunner {
/// Update the engine repository and precache all artifacts. /// Update the engine repository and precache all artifacts.
/// ///
/// Check for and download any engine and pkg/ updates. We run the 'flutter' /// 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. /// Dart and so forth if necessary.
Future<void> precacheArtifacts() async { Future<void> precacheArtifacts() async {
globals.printStatus(''); globals.printStatus('');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment