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

[Bug] sliver sticky header does not work #50

Closed Cierra-Runis closed 1 year ago

Cierra-Runis commented 1 year ago

It doesn't work at Windows with error:

flutter: ExpandableSectionContainer _refreshContainerLayoutOffsets reason:zero size

image

tp7309 commented 1 year ago

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

Cierra-Runis commented 1 year ago

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

1446809932 commented 1 year ago

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

1446809932 commented 1 year ago

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

1446809932 commented 1 year ago

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

tp7309 commented 1 year ago

好的👍