我想在我的应用程序中添加下拉刷新功能。我阅读了关于RefreshIndicator的文章,但它似乎只适用于Material UI。你能建议一种方法,在我的Flutter应用程序中具有原生的iOS下拉刷新吗? 谢谢 :)
看一下这个包 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