Unverified Commit 2ba85a22 authored by Shi-Hao Hong's avatar Shi-Hao Hong Committed by GitHub

Simple Doc Fixes (#35743)

* Fix "the a" typos

* Rephrase global key API doc description
parent 91557958
...@@ -83,8 +83,8 @@ class ObjectKey extends LocalKey { ...@@ -83,8 +83,8 @@ class ObjectKey extends LocalKey {
/// A key that is unique across the entire app. /// A key that is unique across the entire app.
/// ///
/// Global keys uniquely identify elements. Global keys provide access to other /// Global keys uniquely identify elements. Global keys provide access to other
/// objects that are associated with elements, such as the a [BuildContext] and, /// objects that are associated with those elements, such as [BuildContext].
/// for [StatefulWidget]s, a [State]. /// For [StatefulWidget]s, global keys also provide access to [State].
/// ///
/// Widgets that have global keys reparent their subtrees when they are moved /// Widgets that have global keys reparent their subtrees when they are moved
/// from one location in the tree to another location in the tree. In order to /// from one location in the tree to another location in the tree. In order to
......
...@@ -84,7 +84,7 @@ const Matcher findsOneWidget = _FindsWidgetMatcher(1, 1); ...@@ -84,7 +84,7 @@ const Matcher findsOneWidget = _FindsWidgetMatcher(1, 1);
/// * [findsOneWidget], when you want the finder to find exactly one widget. /// * [findsOneWidget], when you want the finder to find exactly one widget.
Matcher findsNWidgets(int n) => _FindsWidgetMatcher(n, n); Matcher findsNWidgets(int n) => _FindsWidgetMatcher(n, n);
/// Asserts that the [Finder] locates the a single widget that has at /// Asserts that the [Finder] locates a single widget that has at
/// least one [Offstage] widget ancestor. /// least one [Offstage] widget ancestor.
/// ///
/// It's important to use a full finder, since by default finders exclude /// It's important to use a full finder, since by default finders exclude
...@@ -101,7 +101,7 @@ Matcher findsNWidgets(int n) => _FindsWidgetMatcher(n, n); ...@@ -101,7 +101,7 @@ Matcher findsNWidgets(int n) => _FindsWidgetMatcher(n, n);
/// * [isOnstage], the opposite. /// * [isOnstage], the opposite.
const Matcher isOffstage = _IsOffstage(); const Matcher isOffstage = _IsOffstage();
/// Asserts that the [Finder] locates the a single widget that has no /// Asserts that the [Finder] locates a single widget that has no
/// [Offstage] widget ancestors. /// [Offstage] widget ancestors.
/// ///
/// See also: /// See also:
...@@ -109,7 +109,7 @@ const Matcher isOffstage = _IsOffstage(); ...@@ -109,7 +109,7 @@ const Matcher isOffstage = _IsOffstage();
/// * [isOffstage], the opposite. /// * [isOffstage], the opposite.
const Matcher isOnstage = _IsOnstage(); const Matcher isOnstage = _IsOnstage();
/// Asserts that the [Finder] locates the a single widget that has at /// Asserts that the [Finder] locates a single widget that has at
/// least one [Card] widget ancestor. /// least one [Card] widget ancestor.
/// ///
/// See also: /// See also:
...@@ -117,7 +117,7 @@ const Matcher isOnstage = _IsOnstage(); ...@@ -117,7 +117,7 @@ const Matcher isOnstage = _IsOnstage();
/// * [isNotInCard], the opposite. /// * [isNotInCard], the opposite.
const Matcher isInCard = _IsInCard(); const Matcher isInCard = _IsInCard();
/// Asserts that the [Finder] locates the a single widget that has no /// Asserts that the [Finder] locates a single widget that has no
/// [Card] widget ancestors. /// [Card] widget ancestors.
/// ///
/// This is equivalent to `isNot(isInCard)`. /// This is equivalent to `isNot(isInCard)`.
......
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