From 9cb0b21e9cea09a45a51e0e2b907b1478c6e5143 Mon Sep 17 00:00:00 2001 From: Mikkel Nygaard Ravn Date: Fri, 10 Aug 2018 09:56:13 +0200 Subject: [PATCH] Fix typos (#20417) --- packages/flutter/lib/src/animation/animations.dart | 2 +- .../flutter/lib/src/foundation/serialization.dart | 2 +- .../lib/src/material/material_localizations.dart | 2 +- packages/flutter/lib/src/painting/alignment.dart | 8 ++++---- .../flutter/lib/src/painting/decoration_image.dart | 2 +- .../flutter/lib/src/rendering/shifted_box.dart | 4 ++-- .../flutter/lib/src/widgets/animated_list.dart | 2 +- .../flutter/lib/src/widgets/fade_in_image.dart | 4 ++-- packages/flutter/lib/src/widgets/framework.dart | 2 +- packages/flutter/lib/src/widgets/image.dart | 4 ++-- .../flutter/lib/src/widgets/localizations.dart | 14 +++++++------- 11 files changed, 23 insertions(+), 23 deletions(-) diff --git a/packages/flutter/lib/src/animation/animations.dart b/packages/flutter/lib/src/animation/animations.dart index bdd41de992..203f9af431 100644 --- a/packages/flutter/lib/src/animation/animations.dart +++ b/packages/flutter/lib/src/animation/animations.dart @@ -369,7 +369,7 @@ class CurvedAnimation extends Animation with AnimationWithParentMixin _alignment; AlignmentGeometry _alignment; @@ -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 /// tight constraint that is bigger than the child's natural size, diff --git a/packages/flutter/lib/src/widgets/animated_list.dart b/packages/flutter/lib/src/widgets/animated_list.dart index 4384e9a781..a5e5e9e892 100644 --- a/packages/flutter/lib/src/widgets/animated_list.dart +++ b/packages/flutter/lib/src/widgets/animated_list.dart @@ -166,7 +166,7 @@ class AnimatedList extends StatefulWidget { if (nullOk || result != null) return result; 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(). ' 'This can happen when the context provided is from the same StatefulWidget that ' 'built the AnimatedList. Please see the AnimatedList documentation for examples ' diff --git a/packages/flutter/lib/src/widgets/fade_in_image.dart b/packages/flutter/lib/src/widgets/fade_in_image.dart index 2a374ff924..d6683abcc3 100644 --- a/packages/flutter/lib/src/widgets/fade_in_image.dart +++ b/packages/flutter/lib/src/widgets/fade_in_image.dart @@ -242,8 +242,8 @@ class FadeInImage extends StatefulWidget { /// How to align the image within its bounds. /// /// 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, - /// -1.0) aligns the image to the top-left corner of its layout bounds, while a + /// 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 an /// [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 /// alignment of (0.0, 1.0) aligns the bottom middle of the image with the diff --git a/packages/flutter/lib/src/widgets/framework.dart b/packages/flutter/lib/src/widgets/framework.dart index 0482b96451..f87713f78f 100644 --- a/packages/flutter/lib/src/widgets/framework.dart +++ b/packages/flutter/lib/src/widgets/framework.dart @@ -4025,7 +4025,7 @@ class ParentDataElement extends ProxyElement { } } -/// An [Element] that uses a [InheritedWidget] as its configuration. +/// An [Element] that uses an [InheritedWidget] as its configuration. class InheritedElement extends ProxyElement { /// Creates an element that uses the given widget as its configuration. InheritedElement(InheritedWidget widget) : super(widget); diff --git a/packages/flutter/lib/src/widgets/image.dart b/packages/flutter/lib/src/widgets/image.dart index c2b90313bb..f645b3e781 100644 --- a/packages/flutter/lib/src/widgets/image.dart +++ b/packages/flutter/lib/src/widgets/image.dart @@ -456,8 +456,8 @@ class Image extends StatefulWidget { /// How to align the image within its bounds. /// /// 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, - /// -1.0) aligns the image to the top-left corner of its layout bounds, while a + /// 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 an /// [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 /// alignment of (0.0, 1.0) aligns the bottom middle of the image with the diff --git a/packages/flutter/lib/src/widgets/localizations.dart b/packages/flutter/lib/src/widgets/localizations.dart index 92b9251695..81a1f874cc 100644 --- a/packages/flutter/lib/src/widgets/localizations.dart +++ b/packages/flutter/lib/src/widgets/localizations.dart @@ -187,10 +187,10 @@ class _WidgetsLocalizationsDelegate extends LocalizationsDelegate load(Locale locale) => MyLocalizations.load(locale); /// -/// @override -/// bool shouldReload(MyLocalizationsDelegate old) => false; -///} +/// @override +/// bool shouldReload(MyLocalizationsDelegate old) => false; +/// } /// ``` /// /// Each delegate can be viewed as a factory for objects that encapsulate a