我已经将ScrollController附加到[SliverAppBar,SliverList]的CustomScrollView
在默认情况下,我会使用reverse:true和animateTo(0.0)将滚动移动到添加的最后一个元素,但在这种情况下使用reverse也会反转SliverAppBar/SliverList顺序!
所以我想使用animateTo(sizeOfScrollableAfterElementAdded)但我找不到这个值.
谢谢 !
它在列表中的最后一个元素之前停止。有没有办法直到最后一个元素的结束容器

controller
..animateTo(
controller.position.maxScrollExtent,
curve: Curves.easeIn,
duration: const Duration(milliseconds: 300),
);
});```
Run Code Online (Sandbox Code Playgroud)