When the child's Scrollable descendant overscrolls, an animated circular progress indicator is faded into view. When the scroll ends, if the indicator has been dragged far enough for it to become completely opaque, the onRefresh callback is called. The callback is expected to update the scrollable's contents and then complete the Future it returns. The refresh indicator disappears after the callback's Future has completed.
当孩子的可滚动后代滚动时,动画循环进度指示器将淡入视图。当滚动结束时,如果指示器被拖得足够远以至于完全不透明,则调用onRefresh回调。回调应该更新滚动条的内容,然后完成它返回的Future。刷新指示器在Futurer的回调完成后消失。
本文介绍了一种可滚动视图中,当内容滚动触发动画循环进度指示器的淡入效果。当滚动结束且指示器完全不透明时,会调用onRefresh回调更新内容并完成Future任务。指示器在任务完成后消失。

被折叠的 条评论
为什么被折叠?



