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
2a07f3f2
Commit
2a07f3f2
authored
Jan 11, 2018
by
Sebastiano Poggi
Committed by
Alexandre Ardhuin
Jan 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo in framework.dart private method name (#14046)
parent
1dca1b22
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
framework.dart
packages/flutter/lib/src/widgets/framework.dart
+8
-8
No files found.
packages/flutter/lib/src/widgets/framework.dart
View file @
2a07f3f2
...
...
@@ -3165,7 +3165,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
Set
<
InheritedElement
>
_dependencies
;
bool
_hadUnsatisfiedDependencies
=
false
;
bool
_debugCheckStateIsActiveForAncestorLoo
p
kup
()
{
bool
_debugCheckStateIsActiveForAncestorLookup
()
{
assert
(()
{
if
(
_debugLifecycleState
!=
_ElementLifecycle
.
active
)
{
throw
new
FlutterError
(
...
...
@@ -3183,7 +3183,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
@override
InheritedWidget
inheritFromWidgetOfExactType
(
Type
targetType
)
{
assert
(
_debugCheckStateIsActiveForAncestorLoo
p
kup
());
assert
(
_debugCheckStateIsActiveForAncestorLookup
());
final
InheritedElement
ancestor
=
_inheritedWidgets
==
null
?
null
:
_inheritedWidgets
[
targetType
];
if
(
ancestor
!=
null
)
{
assert
(
ancestor
is
InheritedElement
);
...
...
@@ -3198,7 +3198,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
@override
InheritedElement
ancestorInheritedElementForWidgetOfExactType
(
Type
targetType
)
{
assert
(
_debugCheckStateIsActiveForAncestorLoo
p
kup
());
assert
(
_debugCheckStateIsActiveForAncestorLookup
());
final
InheritedElement
ancestor
=
_inheritedWidgets
==
null
?
null
:
_inheritedWidgets
[
targetType
];
return
ancestor
;
}
...
...
@@ -3210,7 +3210,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
@override
Widget
ancestorWidgetOfExactType
(
Type
targetType
)
{
assert
(
_debugCheckStateIsActiveForAncestorLoo
p
kup
());
assert
(
_debugCheckStateIsActiveForAncestorLookup
());
Element
ancestor
=
_parent
;
while
(
ancestor
!=
null
&&
ancestor
.
widget
.
runtimeType
!=
targetType
)
ancestor
=
ancestor
.
_parent
;
...
...
@@ -3219,7 +3219,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
@override
State
ancestorStateOfType
(
TypeMatcher
matcher
)
{
assert
(
_debugCheckStateIsActiveForAncestorLoo
p
kup
());
assert
(
_debugCheckStateIsActiveForAncestorLookup
());
Element
ancestor
=
_parent
;
while
(
ancestor
!=
null
)
{
if
(
ancestor
is
StatefulElement
&&
matcher
.
check
(
ancestor
.
state
))
...
...
@@ -3232,7 +3232,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
@override
State
rootAncestorStateOfType
(
TypeMatcher
matcher
)
{
assert
(
_debugCheckStateIsActiveForAncestorLoo
p
kup
());
assert
(
_debugCheckStateIsActiveForAncestorLookup
());
Element
ancestor
=
_parent
;
StatefulElement
statefulAncestor
;
while
(
ancestor
!=
null
)
{
...
...
@@ -3245,7 +3245,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
@override
RenderObject
ancestorRenderObjectOfType
(
TypeMatcher
matcher
)
{
assert
(
_debugCheckStateIsActiveForAncestorLoo
p
kup
());
assert
(
_debugCheckStateIsActiveForAncestorLookup
());
Element
ancestor
=
_parent
;
while
(
ancestor
!=
null
)
{
if
(
ancestor
is
RenderObjectElement
&&
matcher
.
check
(
ancestor
.
renderObject
))
...
...
@@ -3258,7 +3258,7 @@ abstract class Element extends DiagnosticableTree implements BuildContext {
@override
void
visitAncestorElements
(
bool
visitor
(
Element
element
))
{
assert
(
_debugCheckStateIsActiveForAncestorLoo
p
kup
());
assert
(
_debugCheckStateIsActiveForAncestorLookup
());
Element
ancestor
=
_parent
;
while
(
ancestor
!=
null
&&
visitor
(
ancestor
))
ancestor
=
ancestor
.
_parent
;
...
...
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