flutter可以滚动控件之 RefreshIndicator 刷新指示器

本文介绍了一种可滚动视图中,当内容滚动触发动画循环进度指示器的淡入效果。当滚动结束且指示器完全不透明时,会调用onRefresh回调更新内容并完成Future任务。指示器在任务完成后消失。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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的回调完成后消失。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

computerclass

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值