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

Sticky date header #9

Open
pierre-kci opened this issue Jan 31, 2023 · 5 comments
Open

Sticky date header #9

pierre-kci opened this issue Jan 31, 2023 · 5 comments

Comments

@pierre-kci
Copy link
Contributor

How could we keep these date header when scrolling down ?
I've isolated body in a dedicated widget here : https://github.com/pierre-kci/flutter_gantt_chart/tree/isolating-body
In order to remove date header from it just like for the stickyArea,
This worked but splitted the hirontal scrolling in two, i.e. scrolling the events would not bring along the dates.
Any suggestions would be mostly appreciated

@ahmednfwela
Copy link
Member

this can be done using slivers and 2 horizontal listviews that share the same ScrollController

@ahmednfwela
Copy link
Member

@ahmednfwela
Copy link
Member

and this for the sticky header part: https://stackoverflow.com/questions/53085311/sticky-headers-on-sliverlist

@pierre-kci
Copy link
Contributor Author

Wow, super cool !
How would you feel about adding a dependency to linked_scroll_controller ?
I see another approach for multiple scrollable in sync using ScrollNotification but it looks trickier...

Clever approach for the slivers I might just start with this

@ahmednfwela
Copy link
Member

I haven't really tried It, but I think that linked_scroll_controller looks easier

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

No branches or pull requests

2 participants