我想创建始终自动滚动的文本(如标签.continuous
属性swift
)。现在我正在SingleChildScrollView
使用scrollController
SchedulerBinding.instance.addPostFrameCallback((_) {
_scrollController.animateTo(_scrollController.position.maxScrollExtent,
duration: Duration(seconds: 3), curve: Curves.easeIn);
});