Commit 8b197bdd authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

Fix common typos in doc comments (#6520)

parent 310b8053
...@@ -41,7 +41,7 @@ class TextRange { ...@@ -41,7 +41,7 @@ class TextRange {
/// Whether this range is empty (but still potentially placed inside the text). /// Whether this range is empty (but still potentially placed inside the text).
bool get isCollapsed => start == end; 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; bool get isNormalized => end >= start;
/// The text before this range. /// The text before this range.
......
...@@ -62,13 +62,13 @@ class TextSpan { ...@@ -62,13 +62,13 @@ class TextSpan {
/// The text contained in the span. /// 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. /// children.
final String text; final String text;
/// Additional spans to include as children. /// 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. /// children.
/// ///
/// Modifying the list after the [TextSpan] has been created is not /// Modifying the list after the [TextSpan] has been created is not
......
...@@ -90,7 +90,7 @@ class BoxConstraints extends Constraints { ...@@ -90,7 +90,7 @@ class BoxConstraints extends Constraints {
minHeight = 0.0, minHeight = 0.0,
maxHeight = size.height; 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 /// If width or height is given, the constraints will require exactly the
/// given value in the given dimension. /// given value in the given dimension.
......
...@@ -45,7 +45,7 @@ class FlexParentData extends ContainerBoxParentDataMixin<RenderBox> { ...@@ -45,7 +45,7 @@ class FlexParentData extends ContainerBoxParentDataMixin<RenderBox> {
/// During a flex layout, available space along the main axis is allocated to /// During a flex layout, available space along the main axis is allocated to
/// children. After allocating space, there might be some remaining free space. /// children. After allocating space, there might be some remaining free space.
/// This value controls whether to maximize or minimize the amount of free /// 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]. /// See [Row], [Column], [MainAxisAlignment], [Flexible].
enum MainAxisSize { enum MainAxisSize {
...@@ -169,7 +169,7 @@ class RenderFlex extends RenderBox with ContainerRenderObjectMixin<RenderBox, Fl ...@@ -169,7 +169,7 @@ class RenderFlex extends RenderBox with ContainerRenderObjectMixin<RenderBox, Fl
/// ///
/// After allocating space to children, there might be some remaining free /// After allocating space to children, there might be some remaining free
/// space. This value controls whether to maximize or minimize the amount of /// space. This value controls whether to maximize or minimize the amount of
/// free space, subject to the incoming layout contraints. /// free space, subject to the incoming layout constraints.
/// ///
/// If some children have a non-zero flex factors (and none have a fit of /// If some children have a non-zero flex factors (and none have a fit of
/// [FlexFit.loose]), they will expand to consume all the available space and /// [FlexFit.loose]), they will expand to consume all the available space and
......
...@@ -1911,7 +1911,7 @@ class Flex extends MultiChildRenderObjectWidget { ...@@ -1911,7 +1911,7 @@ class Flex extends MultiChildRenderObjectWidget {
/// ///
/// After allocating space to children, there might be some remaining free /// After allocating space to children, there might be some remaining free
/// space. This value controls whether to maximize or minimize the amount of /// space. This value controls whether to maximize or minimize the amount of
/// free space, subject to the incoming layout contraints. /// free space, subject to the incoming layout constraints.
/// ///
/// If some children have a non-zero flex factors (and none have a fit of /// If some children have a non-zero flex factors (and none have a fit of
/// [FlexFit.loose]), they will expand to consume all the available space and /// [FlexFit.loose]), they will expand to consume all the available space and
......
...@@ -1996,7 +1996,7 @@ abstract class Element implements BuildContext { ...@@ -1996,7 +1996,7 @@ abstract class Element implements BuildContext {
/// The framework calls this function when a newly created element is added to /// The framework calls this function when a newly created element is added to
/// the tree for the first time. Use this method to initialize state that /// the tree for the first time. Use this method to initialize state that
/// depends on having a parent. State that is independent of the parent can /// depends on having a parent. State that is independent of the parent can
/// more easily be initialized in the contructor. /// more easily be initialized in the constructor.
/// ///
/// This method transitions the element from the "initial" lifecycle state to /// This method transitions the element from the "initial" lifecycle state to
/// the "active" lifecycle state. /// the "active" lifecycle state.
......
...@@ -253,7 +253,7 @@ class FlutterDriver { ...@@ -253,7 +253,7 @@ class FlutterDriver {
/// ///
/// [dx] and [dy] specify the total offset for the entire scrolling action. /// [dx] and [dy] specify the total offset for the entire scrolling action.
/// ///
/// [duration] specifies the lenght of the action. /// [duration] specifies the length of the action.
/// ///
/// The move events are generated at a given [frequency] in Hz (or events per /// The move events are generated at a given [frequency] in Hz (or events per
/// second). It defaults to 60Hz. /// second). It defaults to 60Hz.
......
...@@ -34,7 +34,7 @@ class MarkdownStyleRaw { ...@@ -34,7 +34,7 @@ class MarkdownStyleRaw {
} }
/// Creates a new [MarkdownStyleRaw] based on the current style, with the /// Creates a new [MarkdownStyleRaw] based on the current style, with the
/// provided paramaters overridden. /// provided parameters overridden.
MarkdownStyleRaw copyWith({ MarkdownStyleRaw copyWith({
TextStyle a, TextStyle a,
TextStyle p, TextStyle p,
......
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