Remove redundant assignment of geometry (#151821)
Remove redundant assignment of geometry.
This commit is contained in:
parent
e5d8466006
commit
46cb56d313
1
AUTHORS
1
AUTHORS
@ -125,3 +125,4 @@ Amir Panahandeh <amirpanahandeh@gmail.com>
|
||||
Kostiantyn Sokolovskyi <sokolovskyi.konstantin@gmail.com>
|
||||
Valentin Vignal <valentin.vignal.dev@outlook.fr>
|
||||
Cedric Vanden Bosch <cedvdb@youvision.dev>
|
||||
Flop <kukuzuo@gmail.com>
|
||||
|
@ -365,20 +365,9 @@ abstract class RenderSliverScrollingPersistentHeader extends RenderSliverPersist
|
||||
return stretchOffset > 0 ? 0.0 : math.min(0.0, paintExtent - childExtent);
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
void performLayout() {
|
||||
final SliverConstraints constraints = this.constraints;
|
||||
final double maxExtent = this.maxExtent;
|
||||
layoutChild(constraints.scrollOffset, maxExtent);
|
||||
final double paintExtent = maxExtent - constraints.scrollOffset;
|
||||
geometry = SliverGeometry(
|
||||
scrollExtent: maxExtent,
|
||||
paintOrigin: math.min(constraints.overlap, 0.0),
|
||||
paintExtent: clampDouble(paintExtent, 0.0, constraints.remainingPaintExtent),
|
||||
maxPaintExtent: maxExtent,
|
||||
hasVisualOverflow: true, // Conservatively say we do have overflow to avoid complexity.
|
||||
);
|
||||
_childPosition = updateGeometry();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user