Dimibe / grouped_list

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

How to disable floating Header #129

Closed insinfo closed 2 years ago

insinfo commented 2 years ago

I put floatingHeader: false but it still keeps displaying floating header

 GroupedListView<Agenda, DateTime>(
                elements: _elements,
                groupBy: (Agenda element) {
                  return DateTime(
                      element.data.year, element.data.month, element.data.day);
                },
                groupSeparatorBuilder: (groupByValue) =>
                    Text(groupByValue.toString()),
                itemBuilder: (context, Agenda element) =>
                    Text(element.atracao.nome),
                /*itemComparator: (item1, item2) =>
                    item1['name'].compareTo(item2['name']), // optional*/
                useStickyGroupSeparators: true, // optional
                floatingHeader: false, // optional
                order: GroupedListOrder.ASC, // optional
              ),

image

Dimibe commented 2 years ago

Hey @insinfo, you need to change the option useStickyGroupSeparators: true to false.