File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -489,6 +489,11 @@ class _RenderSliverStickyHeaderList extends RenderSliver with RenderSliverHelper
489
489
if (_header != null ) adoptChild (_header! );
490
490
}
491
491
492
+ /// This sliver's child sliver, a modified [RenderSliverList] .
493
+ ///
494
+ /// The child manages the items in the list (deferring to [RenderSliverList] );
495
+ /// and identifies which list item, if any, should be consulted
496
+ /// for a sticky header.
492
497
_RenderSliverStickyHeaderListInner ? get child => _child;
493
498
_RenderSliverStickyHeaderListInner ? _child;
494
499
set child (_RenderSliverStickyHeaderListInner ? value) {
@@ -552,6 +557,9 @@ class _RenderSliverStickyHeaderList extends RenderSliver with RenderSliverHelper
552
557
553
558
@override
554
559
void performLayout () {
560
+ // First, lay out the child sliver. This does all the normal work of
561
+ // [RenderSliverList], then calls [_rebuildHeader] on this sliver
562
+ // so that [header] and [_headerEndBound] are up to date.
555
563
assert (child != null );
556
564
child! .layout (constraints, parentUsesSize: true );
557
565
SliverGeometry geometry = child! .geometry! ;
You can’t perform that action at this time.
0 commit comments