Dimibe / grouped_list

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

Is there a way to get the index of an item inside the group? #173

Closed jprobert closed 1 year ago

jprobert commented 1 year ago

For example group 1 got 15 items, how can I get that index? Or how do I know what the first or last item of that group is?

Shamsudeen12 commented 1 year ago

Can you elaborate? Or have you solved this already?

jprobert commented 1 year ago

I was able to bypass it by sorting the List before passing it to the GroupedListView. In that way the index will always match the item in the list.