📅  最后修改于: 2022-03-11 14:58:28.043000             🧑  作者: Mango
To avoid such type of errors check if exist
if (_scrollController.hasClients) {
_scrollController.animateTo(0.0, curve: Curves.easeOut, duration: const Duration(milliseconds: 300))
}
If this is false, then members that interact with the [ScrollPosition], such as
[position], [offset], [animateTo], and [jumpTo], must not be called.