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
fac051c7
Unverified
Commit
fac051c7
authored
Feb 01, 2019
by
Jacob Richman
Committed by
GitHub
Feb 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug in diagnostics for UnconstrainedBox class. (#27381)
parent
b685a3ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
basic.dart
packages/flutter/lib/src/widgets/basic.dart
+2
-2
basic_test.dart
packages/flutter/test/widgets/basic_test.dart
+11
-0
No files found.
packages/flutter/lib/src/widgets/basic.dart
View file @
fac051c7
...
...
@@ -2068,8 +2068,8 @@ class UnconstrainedBox extends SingleChildRenderObjectWidget {
void
debugFillProperties
(
DiagnosticPropertiesBuilder
properties
)
{
super
.
debugFillProperties
(
properties
);
properties
.
add
(
DiagnosticsProperty
<
AlignmentGeometry
>(
'alignment'
,
alignment
));
properties
.
add
(
DiagnosticsProperty
<
Axis
>(
'constrainedAxis'
,
null
));
properties
.
add
(
Diagnostics
Property
<
TextDirection
>(
'textDirection'
,
textDirection
,
defaultValue:
null
));
properties
.
add
(
EnumProperty
<
Axis
>(
'constrainedAxis'
,
constrainedAxis
,
defaultValue:
null
));
properties
.
add
(
Enum
Property
<
TextDirection
>(
'textDirection'
,
textDirection
,
defaultValue:
null
));
}
}
...
...
packages/flutter/test/widgets/basic_test.dart
View file @
fac051c7
...
...
@@ -145,6 +145,17 @@ void main() {
expect
(
_pointerDown
,
isTrue
);
});
});
test
(
'UnconstrainedBox toString'
,
()
{
expect
(
const
UnconstrainedBox
(
constrainedAxis:
Axis
.
vertical
,).
toString
(),
equals
(
'UnconstrainedBox(alignment: center, constrainedAxis: vertical)'
),
);
expect
(
const
UnconstrainedBox
(
constrainedAxis:
Axis
.
horizontal
,
textDirection:
TextDirection
.
rtl
,
alignment:
Alignment
.
topRight
).
toString
(),
equals
(
'UnconstrainedBox(alignment: topRight, constrainedAxis: horizontal, textDirection: rtl)'
),
);
});
}
HitsRenderBox
hits
(
RenderBox
renderBox
)
=>
HitsRenderBox
(
renderBox
);
...
...
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