Dimibe / grouped_list

A Flutter ListView in which items can be grouped into sections.
https://pub.dev/packages/grouped_list
MIT License
411 stars 107 forks source link

Jump to a specific Group Header #116

Closed MohammedElotol closed 2 years ago

MohammedElotol commented 3 years ago

Can I programmatically Scroll to a specific header or to an item? I need to know the index of the header in the list

mohammedebrahim1 commented 2 years ago

got a solution ?

pradeep14598 commented 2 years ago

did you guys got any Solution?

mohammedebrahim1 commented 2 years ago

@pradeep14598 my solution was make a method that's grouped items separately and use list view to scroll to header with it's index

pradeep14598 commented 2 years ago

@MohammedElotol Thank You for your solution and i have done by sorting a whole list with group header name and find a first index of each group header and then passed that index to scroll to that group header

Dimibe commented 2 years ago

Hello, maybe the sticky_grouped_list package which I also published helps you for that problem. It is based on the scrollable_positioned_list which can be programmatically scrolled. My package adds the group functionality to it.

I won't add any solution to this package here.