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
3fc7265a
Commit
3fc7265a
authored
Mar 19, 2017
by
Adam Barth
Committed by
GitHub
Mar 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch from Size.isInfinite to Size.isFinite (#8868)
Fixes #4301
parent
f1c2d784
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
block.dart
packages/flutter/lib/src/rendering/block.dart
+1
-1
box.dart
packages/flutter/lib/src/rendering/box.dart
+2
-2
stack.dart
packages/flutter/lib/src/rendering/stack.dart
+1
-1
view.dart
packages/flutter/lib/src/rendering/view.dart
+1
-1
No files found.
packages/flutter/lib/src/rendering/block.dart
View file @
3fc7265a
...
...
@@ -150,7 +150,7 @@ class RenderBlock extends RenderBox
break
;
}
assert
(
!
size
.
isInf
inite
);
assert
(
size
.
isF
inite
);
}
@override
...
...
packages/flutter/lib/src/rendering/box.dart
View file @
3fc7265a
...
...
@@ -1533,7 +1533,7 @@ abstract class RenderBox extends RenderObject {
);
}
// verify that the size is not infinite
if
(
_size
.
isInf
inite
)
{
if
(
!
_size
.
isF
inite
)
{
final
StringBuffer
information
=
new
StringBuffer
();
if
(!
constraints
.
hasBoundedWidth
)
{
RenderBox
node
=
this
;
...
...
@@ -1658,7 +1658,7 @@ abstract class RenderBox extends RenderObject {
void
performResize
()
{
// default behavior for subclasses that have sizedByParent = true
size
=
constraints
.
smallest
;
assert
(
!
size
.
isInf
inite
);
assert
(
size
.
isF
inite
);
}
@override
...
...
packages/flutter/lib/src/rendering/stack.dart
View file @
3fc7265a
...
...
@@ -370,7 +370,7 @@ class RenderStack extends RenderBox
size
=
constraints
.
biggest
;
}
assert
(
!
size
.
isInf
inite
);
assert
(
size
.
isF
inite
);
child
=
firstChild
;
while
(
child
!=
null
)
{
...
...
packages/flutter/lib/src/rendering/view.dart
View file @
3fc7265a
...
...
@@ -108,7 +108,7 @@ class RenderView extends RenderObject with RenderObjectWithChildMixin<RenderBox>
_orientation
=
configuration
.
orientation
;
}
_size
=
configuration
.
size
;
assert
(
!
_size
.
isInf
inite
);
assert
(
_size
.
isF
inite
);
if
(
child
!=
null
)
child
.
layout
(
new
BoxConstraints
.
tight
(
_size
));
...
...
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