tp7309 / flutter_sticky_and_expandable_list

粘性头部与分组列表Sliver实现 Build a grouped list, which support expand/collapse section and sticky headers, support use it with sliver widget.
MIT License
141 stars 27 forks source link

The SliverExpandableList isn't reversible #11

Closed Ben-Baert closed 3 years ago

Ben-Baert commented 4 years ago

It looks as if the SliverExpandableList isn't reversible (the ExpandableListView is). Is there a way to get this sort of behaviour (reversing and starting at the bottom)? Thanks!

tp7309 commented 4 years ago

Just sort your data source(sectionList property). For example:

          setState(() {
            sectionList = sectionList.reversed.toList();
          });
Ben-Baert commented 4 years ago

That doesn't work unfortunately. It does indeed reverse the list, but that doesn't make the list start at the bottom like the reverse argument in ListView does.

The concrete application is a sticky date chip like the one in Slack, with messages sorted by date as the sectionList.

tp7309 commented 4 years ago

No support. And I found a bug about reverse property in ExpandableListView, trying to fix it.

tp7309 commented 3 years ago

No support yet.