-
Notifications
You must be signed in to change notification settings - Fork 47
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
How to use it in NestedScrollView? #57
Comments
I think TabHeader should also be in the SliverPersistentHeader of NestedScrollView, so that it can be suspended to the top. It may be necessary to deal with the horizontal sliding connection between the body and the header separately. |
@AlexBacich This is my fork project, I hope it can help everyone |
@pengboboer , well done! |
Thank you for the fork @pengboboer, I'm using it right now. Quick question if you don't mind: I have a SliverList beneath the table, and the sticky header remains visible when scrolling down the list. What should I do to make that header also disappear based on the scrolling of the SliverList. |
@rj76 |
Thank you :) The first image is without any scrolling and the header expanded. The second image is when I scroll down the SliverList. I would like the sticky header defined here to also colapse at some scroll position. |
@rj76 Do you mean that when the sliverlist slides again, the week and field areas also need to shrink? |
Yes, the headers of the table in particular. The week should remain sticky. |
@rj76 |
Alright! That sounds like a logical thing to try. Thank you :) |
I need to use it in NestedScrllView because I want to have a custom view at the top of the list, and multiple views can hover at the top of the page, not just the Table Header. I want both the vertical Table Header and my Persistent Header to hover at the top of the page when scrolling up.
But I found several issues:
When I slide the body, the body does not push the header up and multiple views do not stick together
When I slid to the top, the Table Header did not hover at the top of the page
When there is very little data in the list, sliding the list upwards will obscure the body's view by the PersistentHeader
I have found that these issues can lead to extremely poor user experience, which cannot meet our requirements at all.
Has the author ever thought about the handling of NestedScrollView?
I am currently solving these problems, and if there are any solutions, I will share them.
my code:
The text was updated successfully, but these errors were encountered: