xuelongqy / flutter_easy_refresh

A flutter widget that provides pull-down refresh and pull-up load.
https://xuelongqy.github.io/flutter_easy_refresh/
MIT License
3.9k stars 635 forks source link

关于IndicatorMode 事件回调疑问 #674

Closed 309791679 closed 9 months ago

309791679 commented 1 year ago

在实际使用中我发现事件执行状态分别是” IndicatorMode.drag、 IndicatorMode.armed、 IndicatorMode.inactive“

但ui模型中显示了4个状态”IndicatorMode.ready“这个并没有在回调中

就出现我只能可以通过”pullIconBuilder“设置{drag、armed、processed}三个状态的图标, 却没法设置 readyText 文字显示时的图标

dragText:"快了继续拉",armedText: "松手查看全部",readyText:"1正在更新中...",processedText:"更新完成",

309791679 commented 1 year ago

@xuelongqy ,我用的版本是最新的 easy_refresh: ^3.3.0+1

调用代码

 pullIconBuilder:(BuildContext context, IndicatorState state, double animation){print(state.mode);},

整个事件 image

xuelongqy commented 1 year ago

v3分支最新的代码,你看是对你有帮助

xuelongqy commented 9 months ago

状态已添加。如果还有问题,请重新开启此issue