Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
2ba85a22
Unverified
Commit
2ba85a22
authored
Jul 08, 2019
by
Shi-Hao Hong
Committed by
GitHub
Jul 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simple Doc Fixes (#35743)
* Fix "the a" typos * Rephrase global key API doc description
parent
91557958
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
framework.dart
packages/flutter/lib/src/widgets/framework.dart
+2
-2
matchers.dart
packages/flutter_test/lib/src/matchers.dart
+4
-4
No files found.
packages/flutter/lib/src/widgets/framework.dart
View file @
2ba85a22
...
...
@@ -83,8 +83,8 @@ class ObjectKey extends LocalKey {
/// A key that is unique across the entire app.
///
/// Global keys uniquely identify elements. Global keys provide access to other
/// objects that are associated with
elements, such as the a [BuildContext] and,
///
for [StatefulWidget]s, a
[State].
/// objects that are associated with
those elements, such as [BuildContext].
///
For [StatefulWidget]s, global keys also provide access to
[State].
///
/// 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
...
...
packages/flutter_test/lib/src/matchers.dart
View file @
2ba85a22
...
...
@@ -84,7 +84,7 @@ const Matcher findsOneWidget = _FindsWidgetMatcher(1, 1);
/// * [findsOneWidget], when you want the finder to find exactly one widget.
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.
///
/// It's important to use a full finder, since by default finders exclude
...
...
@@ -101,7 +101,7 @@ Matcher findsNWidgets(int n) => _FindsWidgetMatcher(n, n);
/// * [isOnstage], the opposite.
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.
///
/// See also:
...
...
@@ -109,7 +109,7 @@ const Matcher isOffstage = _IsOffstage();
/// * [isOffstage], the opposite.
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.
///
/// See also:
...
...
@@ -117,7 +117,7 @@ const Matcher isOnstage = _IsOnstage();
/// * [isNotInCard], the opposite.
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.
///
/// This is equivalent to `isNot(isInCard)`.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment