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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] sliver sticky header does not work

Cierra-Runis opened this issue · comments

It doesn't work at Windows with error:

flutter: ExpandableSectionContainer _refreshContainerLayoutOffsets reason:zero size

image

commented

need more detail info.
windows version
flutter version
emulator version
example code

  • windows version : Windows11
  • flutter version : 3.10.5
  • emulator : not using
  • example code : here

It's fine at Android, but doesn't work at Windows

commented

I also encountered this issue on Android
setState(() {
sectionList[i].setSectionExpanded(true);
});

flutter (30418): ExpandableSectionContainer _refreshContainerLayoutOffsets reason:zero size
flutter (30418): ExpandableSectionContainer clearContainerLayoutOffsets
flutter (30418): ExpandableSectionContainer clearContainerLayoutOffsets
flutter (30418): ExpandableSectionContainer _refreshContainerLayoutOffsets reason:zero size

commented

android version : 13
flutter version : 3.7.12
emulator version : not using
example code :
setState(() {
sectionList[i].setSectionExpanded(true);
});

commented

没错,是我自己错的,上面那些都是自己状态管理写错了

commented

好的👍