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.89k stars 633 forks source link

onRefresh/onLoad执行时间小于header/footer的processedDuration时,刷新结束后,箭头方向未还原 #731

Closed 346218368 closed 1 year ago

346218368 commented 1 year ago

1.场景:例如在header的processedDuration为1s,则当onRefresh的执行时间<1s时,header回弹到顶部后恢复状态后,其箭头仍然是向上(初始状态应该是向下的) 2.疑问:在processedDuration值固定的情况下,除了人为延长onRefresh和onLoad的执行时间外使其不小于processedDuration外,有其他方案吗?我认为延长onRefresh和onLoad的执行时间是不太合理的

346218368 commented 1 year ago

经验证:onrefresh和onLoad瞬间完成出现此问题,至少需要有1ms时延再finish则不会出现该问题

346218368 commented 1 year ago

测试过程使用await Future.delayed(const Duration(milliseconds: 0));即可