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
c8fc2858
Unverified
Commit
c8fc2858
authored
Oct 31, 2022
by
fzyzcjy
Committed by
GitHub
Oct 31, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix incorrectly named "debug" prefix (#114117)
parent
e0f73940
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
object.dart
packages/flutter/lib/src/rendering/object.dart
+5
-5
framework.dart
packages/flutter/lib/src/widgets/framework.dart
+7
-7
layout_builder.dart
packages/flutter/lib/src/widgets/layout_builder.dart
+3
-3
No files found.
packages/flutter/lib/src/rendering/object.dart
View file @
c8fc2858
...
...
@@ -1549,7 +1549,7 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im
/// * [DebugCreator], which the [widgets] library uses as values for this field.
Object
?
debugCreator
;
void
_
debugR
eportException
(
String
method
,
Object
exception
,
StackTrace
stack
)
{
void
_
r
eportException
(
String
method
,
Object
exception
,
StackTrace
stack
)
{
FlutterError
.
reportError
(
FlutterErrorDetails
(
exception:
exception
,
stack:
stack
,
...
...
@@ -2007,7 +2007,7 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im
performLayout
();
markNeedsSemanticsUpdate
();
}
catch
(
e
,
stack
)
{
_
debugR
eportException
(
'performLayout'
,
e
,
stack
);
_
r
eportException
(
'performLayout'
,
e
,
stack
);
}
assert
(()
{
_debugActiveLayout
=
debugPreviousActiveLayout
;
...
...
@@ -2151,7 +2151,7 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im
return
true
;
}());
}
catch
(
e
,
stack
)
{
_
debugR
eportException
(
'performResize'
,
e
,
stack
);
_
r
eportException
(
'performResize'
,
e
,
stack
);
}
assert
(()
{
_debugDoingThisResize
=
false
;
...
...
@@ -2173,7 +2173,7 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im
return
true
;
}());
}
catch
(
e
,
stack
)
{
_
debugR
eportException
(
'performLayout'
,
e
,
stack
);
_
r
eportException
(
'performLayout'
,
e
,
stack
);
}
assert
(()
{
_debugActiveLayout
=
debugPreviousActiveLayout
;
...
...
@@ -2831,7 +2831,7 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im
assert
(!
_needsLayout
);
// check that the paint() method didn't mark us dirty again
assert
(!
_needsPaint
);
// check that the paint() method didn't mark us dirty again
}
catch
(
e
,
stack
)
{
_
debugR
eportException
(
'paint'
,
e
,
stack
);
_
r
eportException
(
'paint'
,
e
,
stack
);
}
assert
(()
{
debugPaint
(
context
,
offset
);
...
...
packages/flutter/lib/src/widgets/framework.dart
View file @
c8fc2858
...
...
@@ -2733,7 +2733,7 @@ class BuildOwner {
try
{
element
.
rebuild
();
}
catch
(
e
,
stack
)
{
_
debugR
eportException
(
_
r
eportException
(
ErrorDescription
(
'while rebuilding dirty elements'
),
e
,
stack
,
...
...
@@ -3101,7 +3101,7 @@ class BuildOwner {
// Catching the exception directly to avoid activating the ErrorWidget.
// Since the tree is in a broken state, adding the ErrorWidget would
// cause more exceptions.
_
debugR
eportException
(
ErrorSummary
(
'while finalizing the widget tree'
),
e
,
stack
);
_
r
eportException
(
ErrorSummary
(
'while finalizing the widget tree'
),
e
,
stack
);
}
finally
{
if
(!
kReleaseMode
)
{
Timeline
.
finishSync
();
...
...
@@ -4965,7 +4965,7 @@ abstract class ComponentElement extends Element {
}
catch
(
e
,
stack
)
{
_debugDoingBuild
=
false
;
built
=
ErrorWidget
.
builder
(
_
debugR
eportException
(
_
r
eportException
(
ErrorDescription
(
'building
$this
'
),
e
,
stack
,
...
...
@@ -4985,7 +4985,7 @@ abstract class ComponentElement extends Element {
assert
(
_child
!=
null
);
}
catch
(
e
,
stack
)
{
built
=
ErrorWidget
.
builder
(
_
debugR
eportException
(
_
r
eportException
(
ErrorDescription
(
'building
$this
'
),
e
,
stack
,
...
...
@@ -5790,7 +5790,7 @@ abstract class RenderObjectElement extends Element {
ErrorDescription
(
'The ownership chain for the RenderObject that received the parent data was:
\n
${debugGetCreatorChain(10)}
'
),
]);
}
on
FlutterError
catch
(
e
)
{
_
debugR
eportException
(
ErrorSummary
(
'while looking for parent data.'
),
e
,
e
.
stackTrace
);
_
r
eportException
(
ErrorSummary
(
'while looking for parent data.'
),
e
,
e
.
stackTrace
);
}
}
return
true
;
...
...
@@ -6121,7 +6121,7 @@ abstract class RenderObjectElement extends Element {
// while still allowing debuggers to break on exception. Since the tree
// is in a broken state, adding the ErrorWidget would likely cause more
// exceptions, which is not good for the debugging experience.
_
debugR
eportException
(
ErrorSummary
(
'while applying parent data.'
),
e
,
e
.
stackTrace
);
_
r
eportException
(
ErrorSummary
(
'while applying parent data.'
),
e
,
e
.
stackTrace
);
}
return
true
;
}());
...
...
@@ -6545,7 +6545,7 @@ class DebugCreator {
String
toString
()
=>
element
.
debugGetCreatorChain
(
12
);
}
FlutterErrorDetails
_
debugR
eportException
(
FlutterErrorDetails
_
r
eportException
(
DiagnosticsNode
context
,
Object
exception
,
StackTrace
?
stack
,
{
...
...
packages/flutter/lib/src/widgets/layout_builder.dart
View file @
c8fc2858
...
...
@@ -120,7 +120,7 @@ class _LayoutBuilderElement<ConstraintType extends Constraints> extends RenderOb
debugWidgetBuilderValue
(
widget
,
built
);
}
catch
(
e
,
stack
)
{
built
=
ErrorWidget
.
builder
(
_
debugR
eportException
(
_
r
eportException
(
ErrorDescription
(
'building
$widget
'
),
e
,
stack
,
...
...
@@ -136,7 +136,7 @@ class _LayoutBuilderElement<ConstraintType extends Constraints> extends RenderOb
assert
(
_child
!=
null
);
}
catch
(
e
,
stack
)
{
built
=
ErrorWidget
.
builder
(
_
debugR
eportException
(
_
r
eportException
(
ErrorDescription
(
'building
$widget
'
),
e
,
stack
,
...
...
@@ -358,7 +358,7 @@ class _RenderLayoutBuilder extends RenderBox with RenderObjectWithChildMixin<Ren
}
}
FlutterErrorDetails
_
debugR
eportException
(
FlutterErrorDetails
_
r
eportException
(
DiagnosticsNode
context
,
Object
exception
,
StackTrace
stack
,
{
...
...
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