Unverified Commit 9cb0b21e authored by Mikkel Nygaard Ravn's avatar Mikkel Nygaard Ravn Committed by GitHub

Fix typos (#20417)

parent 96326d47
...@@ -369,7 +369,7 @@ class CurvedAnimation extends Animation<double> with AnimationWithParentMixin<do ...@@ -369,7 +369,7 @@ class CurvedAnimation extends Animation<double> with AnimationWithParentMixin<do
/// ///
/// The curve direction is only reset when we hit the beginning or the end of /// The curve direction is only reset when we hit the beginning or the end of
/// the timeline to avoid discontinuities in the value of any variables this /// the timeline to avoid discontinuities in the value of any variables this
/// a animation is used to animate. /// animation is used to animate.
AnimationStatus _curveDirection; AnimationStatus _curveDirection;
void _updateCurveDirection(AnimationStatus status) { void _updateCurveDirection(AnimationStatus status) {
......
...@@ -65,7 +65,7 @@ class WriteBuffer { ...@@ -65,7 +65,7 @@ class WriteBuffer {
_buffer.addAll(list); _buffer.addAll(list);
} }
/// Write all the values from a [Int32List] into the buffer. /// Write all the values from an [Int32List] into the buffer.
void putInt32List(Int32List list) { void putInt32List(Int32List list) {
_alignTo(4); _alignTo(4);
_buffer.addAll(list.buffer.asUint8List(list.offsetInBytes, 4 * list.length)); _buffer.addAll(list.buffer.asUint8List(list.offsetInBytes, 4 * list.length));
......
...@@ -138,7 +138,7 @@ abstract class MaterialLocalizations { ...@@ -138,7 +138,7 @@ abstract class MaterialLocalizations {
/// Label read out by accessibility tools (TalkBack or VoiceOver) for a modal /// Label read out by accessibility tools (TalkBack or VoiceOver) for a modal
/// barrier to indicate that a tap dismisses the barrier. /// barrier to indicate that a tap dismisses the barrier.
/// ///
/// A modal barrier can for example be found behind a alert or popup to block /// A modal barrier can for example be found behind an alert or popup to block
/// user interaction with elements behind it. /// user interaction with elements behind it.
String get modalBarrierDismissLabel; String get modalBarrierDismissLabel;
......
...@@ -14,7 +14,7 @@ import 'basic_types.dart'; ...@@ -14,7 +14,7 @@ import 'basic_types.dart';
/// A property or argument of this type accepts classes created either with [new /// A property or argument of this type accepts classes created either with [new
/// Alignment] and its variants, or [new AlignmentDirectional]. /// Alignment] and its variants, or [new AlignmentDirectional].
/// ///
/// To convert a [AlignmentGeometry] object of indeterminate type into a /// To convert an [AlignmentGeometry] object of indeterminate type into an
/// [Alignment] object, call the [resolve] method. /// [Alignment] object, call the [resolve] method.
@immutable @immutable
abstract class AlignmentGeometry { abstract class AlignmentGeometry {
...@@ -115,7 +115,7 @@ abstract class AlignmentGeometry { ...@@ -115,7 +115,7 @@ abstract class AlignmentGeometry {
); );
} }
/// Convert this instance into a [Alignment], which uses literal /// Convert this instance into an [Alignment], which uses literal
/// coordinates (the `x` coordinate being explicitly a distance from the /// coordinates (the `x` coordinate being explicitly a distance from the
/// left). /// left).
/// ///
...@@ -173,7 +173,7 @@ abstract class AlignmentGeometry { ...@@ -173,7 +173,7 @@ abstract class AlignmentGeometry {
/// A variety of widgets use [Alignment] in their configuration, most /// A variety of widgets use [Alignment] in their configuration, most
/// notably: /// notably:
/// ///
/// * [Align] positions a child according to a [Alignment]. /// * [Align] positions a child according to an [Alignment].
/// ///
/// See also: /// See also:
/// ///
...@@ -414,7 +414,7 @@ class AlignmentDirectional extends AlignmentGeometry { ...@@ -414,7 +414,7 @@ class AlignmentDirectional extends AlignmentGeometry {
/// than -1.0 represent positions beyond the start edge, and values greater than /// than -1.0 represent positions beyond the start edge, and values greater than
/// 1.0 represent positions beyond the end edge. /// 1.0 represent positions beyond the end edge.
/// ///
/// This value is normalized into a [Alignment.x] value by the [resolve] /// This value is normalized into an [Alignment.x] value by the [resolve]
/// method. /// method.
final double start; final double start;
......
...@@ -71,7 +71,7 @@ class DecorationImage { ...@@ -71,7 +71,7 @@ class DecorationImage {
/// How to align the image within its bounds. /// How to align the image within its bounds.
/// ///
/// The alignment aligns the given position in the image to the given position /// The alignment aligns the given position in the image to the given position
/// in the layout bounds. For example, a [Alignment] alignment of (-1.0, /// in the layout bounds. For example, an [Alignment] alignment of (-1.0,
/// -1.0) aligns the image to the top-left corner of its layout bounds, while a /// -1.0) aligns the image to the top-left corner of its layout bounds, while a
/// [Alignment] alignment of (1.0, 1.0) aligns the bottom right of the /// [Alignment] alignment of (1.0, 1.0) aligns the bottom right of the
/// image with the bottom right corner of its layout bounds. Similarly, an /// image with the bottom right corner of its layout bounds. Similarly, an
......
...@@ -267,7 +267,7 @@ abstract class RenderAligningShiftedBox extends RenderShiftedBox { ...@@ -267,7 +267,7 @@ abstract class RenderAligningShiftedBox extends RenderShiftedBox {
/// For example, a value of 0.0 means that the center of the child is aligned /// For example, a value of 0.0 means that the center of the child is aligned
/// with the center of the parent. /// with the center of the parent.
/// ///
/// If this is set to a [AlignmentDirectional] object, then /// If this is set to an [AlignmentDirectional] object, then
/// [textDirection] must not be null. /// [textDirection] must not be null.
AlignmentGeometry get alignment => _alignment; AlignmentGeometry get alignment => _alignment;
AlignmentGeometry _alignment; AlignmentGeometry _alignment;
...@@ -322,7 +322,7 @@ abstract class RenderAligningShiftedBox extends RenderShiftedBox { ...@@ -322,7 +322,7 @@ abstract class RenderAligningShiftedBox extends RenderShiftedBox {
} }
} }
/// Positions its child using a [AlignmentGeometry]. /// Positions its child using an [AlignmentGeometry].
/// ///
/// For example, to align a box at the bottom right, you would pass this box a /// For example, to align a box at the bottom right, you would pass this box a
/// tight constraint that is bigger than the child's natural size, /// tight constraint that is bigger than the child's natural size,
......
...@@ -166,7 +166,7 @@ class AnimatedList extends StatefulWidget { ...@@ -166,7 +166,7 @@ class AnimatedList extends StatefulWidget {
if (nullOk || result != null) if (nullOk || result != null)
return result; return result;
throw new FlutterError( throw new FlutterError(
'AnimatedList.of() called with a context that does not contain a AnimatedList.\n' 'AnimatedList.of() called with a context that does not contain an AnimatedList.\n'
'No AnimatedList ancestor could be found starting from the context that was passed to AnimatedList.of(). ' 'No AnimatedList ancestor could be found starting from the context that was passed to AnimatedList.of(). '
'This can happen when the context provided is from the same StatefulWidget that ' 'This can happen when the context provided is from the same StatefulWidget that '
'built the AnimatedList. Please see the AnimatedList documentation for examples ' 'built the AnimatedList. Please see the AnimatedList documentation for examples '
......
...@@ -242,8 +242,8 @@ class FadeInImage extends StatefulWidget { ...@@ -242,8 +242,8 @@ class FadeInImage extends StatefulWidget {
/// How to align the image within its bounds. /// How to align the image within its bounds.
/// ///
/// The alignment aligns the given position in the image to the given position /// The alignment aligns the given position in the image to the given position
/// in the layout bounds. For example, a [Alignment] alignment of (-1.0, /// in the layout bounds. For example, an [Alignment] alignment of (-1.0,
/// -1.0) aligns the image to the top-left corner of its layout bounds, while a /// -1.0) aligns the image to the top-left corner of its layout bounds, while an
/// [Alignment] alignment of (1.0, 1.0) aligns the bottom right of the /// [Alignment] alignment of (1.0, 1.0) aligns the bottom right of the
/// image with the bottom right corner of its layout bounds. Similarly, an /// image with the bottom right corner of its layout bounds. Similarly, an
/// alignment of (0.0, 1.0) aligns the bottom middle of the image with the /// alignment of (0.0, 1.0) aligns the bottom middle of the image with the
......
...@@ -4025,7 +4025,7 @@ class ParentDataElement<T extends RenderObjectWidget> extends ProxyElement { ...@@ -4025,7 +4025,7 @@ class ParentDataElement<T extends RenderObjectWidget> extends ProxyElement {
} }
} }
/// An [Element] that uses a [InheritedWidget] as its configuration. /// An [Element] that uses an [InheritedWidget] as its configuration.
class InheritedElement extends ProxyElement { class InheritedElement extends ProxyElement {
/// Creates an element that uses the given widget as its configuration. /// Creates an element that uses the given widget as its configuration.
InheritedElement(InheritedWidget widget) : super(widget); InheritedElement(InheritedWidget widget) : super(widget);
......
...@@ -456,8 +456,8 @@ class Image extends StatefulWidget { ...@@ -456,8 +456,8 @@ class Image extends StatefulWidget {
/// How to align the image within its bounds. /// How to align the image within its bounds.
/// ///
/// The alignment aligns the given position in the image to the given position /// The alignment aligns the given position in the image to the given position
/// in the layout bounds. For example, a [Alignment] alignment of (-1.0, /// in the layout bounds. For example, an [Alignment] alignment of (-1.0,
/// -1.0) aligns the image to the top-left corner of its layout bounds, while a /// -1.0) aligns the image to the top-left corner of its layout bounds, while an
/// [Alignment] alignment of (1.0, 1.0) aligns the bottom right of the /// [Alignment] alignment of (1.0, 1.0) aligns the bottom right of the
/// image with the bottom right corner of its layout bounds. Similarly, an /// image with the bottom right corner of its layout bounds. Similarly, an
/// alignment of (0.0, 1.0) aligns the bottom middle of the image with the /// alignment of (0.0, 1.0) aligns the bottom middle of the image with the
......
...@@ -187,10 +187,10 @@ class _WidgetsLocalizationsDelegate extends LocalizationsDelegate<WidgetsLocaliz ...@@ -187,10 +187,10 @@ class _WidgetsLocalizationsDelegate extends LocalizationsDelegate<WidgetsLocaliz
/// ///
/// See also: /// See also:
/// ///
/// * [GlobalWidgetsLocalizations], which provides widgets localizations for /// * [GlobalWidgetsLocalizations], which provides widgets localizations for
/// many languages. /// many languages.
/// * [WidgetsApp.delegates], which automatically includes /// * [WidgetsApp.delegates], which automatically includes
/// [DefaultWidgetsLocalizations.delegate] by default. /// [DefaultWidgetsLocalizations.delegate] by default.
class DefaultWidgetsLocalizations implements WidgetsLocalizations { class DefaultWidgetsLocalizations implements WidgetsLocalizations {
/// Construct an object that defines the localized values for the widgets /// Construct an object that defines the localized values for the widgets
/// library for US English (only). /// library for US English (only).
...@@ -257,9 +257,9 @@ class _LocalizationsScope extends InheritedWidget { ...@@ -257,9 +257,9 @@ class _LocalizationsScope extends InheritedWidget {
/// @override /// @override
/// Future<MyLocalizations> load(Locale locale) => MyLocalizations.load(locale); /// Future<MyLocalizations> load(Locale locale) => MyLocalizations.load(locale);
/// ///
/// @override /// @override
/// bool shouldReload(MyLocalizationsDelegate old) => false; /// bool shouldReload(MyLocalizationsDelegate old) => false;
///} /// }
/// ``` /// ```
/// ///
/// Each delegate can be viewed as a factory for objects that encapsulate a /// Each delegate can be viewed as a factory for objects that encapsulate a
......
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