-
Notifications
You must be signed in to change notification settings - Fork 130
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
[BUG] Jumpy header inside CustomScrollView with center key #67
Comments
Yes this also happens for me, but only for a the first bit of the child, and gets fixed after one whole screen has been scrolled. |
The way this library works is very hacky, the only work around is to calculate the header position during paint as done in the PR above. A better solution would be using |
I'm seeing a related issue where if I add an item to the list or scroll view that the header can jump down the list (by the amount the list size has increased) until a scroll is initiated, upon which it resets correctly. It's an edge case to be sure but can look bad to end users. |
Can you checkout if my fork (#72) fixes that issue? |
Since the fork was merged, it unfortunately doesn't. I just tested with the code above. The same problem happens. |
WDYM? The code in the issue should be fixed in my fork, as I use that fork for a production app where it works. It is also not merged yet. How are you importing the code? |
My bad ... I thought it was merged already. BTW. I'm already looking to SliverMainAxisGroup, which will provide Sticky Headers out of the box in flutter. |
This shoudl probably stay open, but thanks for pointing that out! Then we can also finally move away from this library |
@Areopagitics I tried to work with SliverMainAxisGroup, but I am confident it doesn't workin in reverse scroll direction. Could you reopen this? |
When using StickyHeader inside a CustomScrollView with center key, the header immediately before the center header month jumps around; all the other header months have no problems. A plug and play ready example is found below. If there is an easy way to fix the problem, it would be much appreciated. I have tried countless other options...I am really surprised the sticky header is not included with the flutter CustomScrollView widgets.
The text was updated successfully, but these errors were encountered: