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
54bbb6fb
Commit
54bbb6fb
authored
Apr 07, 2017
by
Ian Hickson
Committed by
GitHub
Apr 07, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SliverFill: s/size/extent/ as requested by abarth a while ago... (#9279)
parent
6d5488ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sliver_fill.dart
packages/flutter/lib/src/rendering/sliver_fill.dart
+4
-4
No files found.
packages/flutter/lib/src/rendering/sliver_fill.dart
View file @
54bbb6fb
...
...
@@ -116,17 +116,17 @@ class RenderSliverFillRemaining extends RenderSliverSingleBoxAdapter {
@override
void
performLayout
()
{
final
double
size
=
constraints
.
remainingPaintExtent
-
math
.
min
(
constraints
.
overlap
,
0.0
);
final
double
extent
=
constraints
.
remainingPaintExtent
-
math
.
min
(
constraints
.
overlap
,
0.0
);
if
(
child
!=
null
)
child
.
layout
(
constraints
.
asBoxConstraints
(
minExtent:
size
,
maxExtent:
size
),
parentUsesSize:
true
);
final
double
paintedChildSize
=
calculatePaintOffset
(
constraints
,
from:
0.0
,
to:
size
);
child
.
layout
(
constraints
.
asBoxConstraints
(
minExtent:
extent
,
maxExtent:
extent
),
parentUsesSize:
true
);
final
double
paintedChildSize
=
calculatePaintOffset
(
constraints
,
from:
0.0
,
to:
extent
);
assert
(
paintedChildSize
.
isFinite
);
assert
(
paintedChildSize
>=
0.0
);
geometry
=
new
SliverGeometry
(
scrollExtent:
constraints
.
viewportMainAxisExtent
,
paintExtent:
paintedChildSize
,
maxPaintExtent:
paintedChildSize
,
hasVisualOverflow:
size
>
constraints
.
remainingPaintExtent
||
constraints
.
scrollOffset
>
0.0
,
hasVisualOverflow:
extent
>
constraints
.
remainingPaintExtent
||
constraints
.
scrollOffset
>
0.0
,
);
if
(
child
!=
null
)
setChildParentData
(
child
,
constraints
,
geometry
);
...
...
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