Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrollable.ensureVisible(context) broken due to incorrect childScrollOffset() #59

Open
spkersten opened this issue Mar 29, 2021 · 1 comment · May be fixed by #60
Open

Scrollable.ensureVisible(context) broken due to incorrect childScrollOffset() #59

spkersten opened this issue Mar 29, 2021 · 1 comment · May be fixed by #60

Comments

@spkersten
Copy link

spkersten commented Mar 29, 2021

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants