Bdaya-Dev / flutter_gantt_chart

Flutter Gantt chart UI library
BSD 3-Clause "New" or "Revised" License
11 stars 9 forks source link

Sticky date header #9

Open pierre-kci opened 1 year ago

pierre-kci commented 1 year ago

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 commented 1 year ago

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

ahmednfwela commented 1 year ago

check this SO question https://stackoverflow.com/questions/54859779/scroll-multiple-scrollable-widgets-in-sync

ahmednfwela commented 1 year ago

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

pierre-kci commented 1 year ago

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 commented 1 year ago

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