Skip to content

对于SliverList,数据源变更后,如何jumpTo的很平滑,没有闪烁的视觉 #105

@runfengai

Description

@runfengai

Content

如题,当前展示了itemA这一条数据,当我展开后,数据源变为10条,itemA在中间第五条。此时我直接observerController.jumpTo(4),会自动跳到一个比较诡异的地方【可能是2/3】,于是尝试用WidgetsBinding.instance.addPostFrameCallback((_){})倒是可以滑动到目标位置,但是有明显的闪烁感,体验有点差。

tks!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions