Closed Ben-Baert closed 3 years ago
Just sort your data source(sectionList
property). For example:
setState(() {
sectionList = sectionList.reversed.toList();
});
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
.
No support.
And I found a bug about reverse
property in ExpandableListView
, trying to fix it.
No support yet.
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!