首页 > 解决方案 > Pull to refresh in flutter with iOS look and feel

问题描述

I would like to add the pull to refresh behavior in my app. I read about the RefreshIndicator, but it seems to have only the material UI. Can you suggest me a way to have the native iOS pull to refresh in my Flutter App? Thanks :)

标签: iosdartflutter

解决方案


看看这个包https://pub.dartlang.org/packages/pull_to_refresh 它可以满足您的需要。

pubspec.yml在文件中添加依赖项

dependencies:
     pull_to_refresh: ^1.1.6

这里有样本:https ://github.com/peng8350/flutter_pulltorefresh/tree/master/example/lib/ui


推荐阅读