When using Scrollable.ensureVisible(context) on a child of SliverStickyHeader with overlapsContent: true, the Scrollable scrolls to the wrong position.
The problem appears to be in childScrollOffset (https://github.com/letsar/flutter_sticky_header/blob/master/lib/src/rendering/sliver_sticky_header.dart#L346) which returns _headerExtent even with overlapping headers. I think that should be headerLogicalExtent (= overlapsContent ? 0.0 : _headerExtent).
When using
Scrollable.ensureVisible(context)on a child ofSliverStickyHeaderwithoverlapsContent: true, theScrollablescrolls to the wrong position.The problem appears to be in
childScrollOffset(https://github.com/letsar/flutter_sticky_header/blob/master/lib/src/rendering/sliver_sticky_header.dart#L346) which returns_headerExtenteven with overlapping headers. I think that should beheaderLogicalExtent(=overlapsContent ? 0.0 : _headerExtent).