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

Sticky parameter to header builder #182

Closed deakjahn closed 10 months ago

deakjahn commented 1 year ago

A suggestion to enable styling the sticky and the non-sticky headers differently. Currently, the background can be specified for the sticky ones but there might be cases when more than the background (eg. foreground, font style, etc) needs to be different as well. The perfect solution would be to modify groupSeparatorBuilder() to include the sticky parameter but that would be a breaking change. So, I added a new builder callback. If you consider this approach acceptable, you might want to deprecate the orginal one some time in the future.

deakjahn commented 1 year ago

Shall I include https://github.com/Dimibe/grouped_list/issues/181 as well?

Dimibe commented 10 months ago

Thanks for contribution. Same functionality is added in #126, so closing this PR