From 8b197bddcea30bd169046589041b8876dd810ab9 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Tue, 25 Oct 2016 10:06:42 -0700 Subject: [PATCH] Fix common typos in doc comments (#6520) --- packages/flutter/lib/src/painting/text_editing.dart | 2 +- packages/flutter/lib/src/painting/text_span.dart | 4 ++-- packages/flutter/lib/src/rendering/box.dart | 2 +- packages/flutter/lib/src/rendering/flex.dart | 4 ++-- packages/flutter/lib/src/widgets/basic.dart | 2 +- packages/flutter/lib/src/widgets/framework.dart | 2 +- packages/flutter_driver/lib/src/driver.dart | 2 +- packages/flutter_markdown/lib/src/markdown_style_raw.dart | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/flutter/lib/src/painting/text_editing.dart b/packages/flutter/lib/src/painting/text_editing.dart index 139d1aa8b5..9fde58c06f 100644 --- a/packages/flutter/lib/src/painting/text_editing.dart +++ b/packages/flutter/lib/src/painting/text_editing.dart @@ -41,7 +41,7 @@ class TextRange { /// Whether this range is empty (but still potentially placed inside the text). bool get isCollapsed => start == end; - /// Whether the start of this range preceeds the end. + /// Whether the start of this range precedes the end. bool get isNormalized => end >= start; /// The text before this range. diff --git a/packages/flutter/lib/src/painting/text_span.dart b/packages/flutter/lib/src/painting/text_span.dart index c31c374183..1917e83f89 100644 --- a/packages/flutter/lib/src/painting/text_span.dart +++ b/packages/flutter/lib/src/painting/text_span.dart @@ -62,13 +62,13 @@ class TextSpan { /// The text contained in the span. /// - /// If both [text] and [children] are non-null, the text will preceed the + /// If both [text] and [children] are non-null, the text will precede the /// children. final String text; /// Additional spans to include as children. /// - /// If both [text] and [children] are non-null, the text will preceed the + /// If both [text] and [children] are non-null, the text will precede the /// children. /// /// Modifying the list after the [TextSpan] has been created is not diff --git a/packages/flutter/lib/src/rendering/box.dart b/packages/flutter/lib/src/rendering/box.dart index 6a7b1db03e..bfd7ea4d69 100644 --- a/packages/flutter/lib/src/rendering/box.dart +++ b/packages/flutter/lib/src/rendering/box.dart @@ -90,7 +90,7 @@ class BoxConstraints extends Constraints { minHeight = 0.0, maxHeight = size.height; - /// Creates box constraints that expand to fill another box contraints. + /// Creates box constraints that expand to fill another box constraints. /// /// If width or height is given, the constraints will require exactly the /// given value in the given dimension. diff --git a/packages/flutter/lib/src/rendering/flex.dart b/packages/flutter/lib/src/rendering/flex.dart index bc0ab56236..c524fb14b9 100644 --- a/packages/flutter/lib/src/rendering/flex.dart +++ b/packages/flutter/lib/src/rendering/flex.dart @@ -45,7 +45,7 @@ class FlexParentData extends ContainerBoxParentDataMixin { /// During a flex layout, available space along the main axis is allocated to /// children. After allocating space, there might be some remaining free space. /// This value controls whether to maximize or minimize the amount of free -/// space, subject to the incoming layout contraints. +/// space, subject to the incoming layout constraints. /// /// See [Row], [Column], [MainAxisAlignment], [Flexible]. enum MainAxisSize { @@ -169,7 +169,7 @@ class RenderFlex extends RenderBox with ContainerRenderObjectMixin