ios - 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 :)
解决方案
看看这个包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
推荐阅读
- javascript - 如何使用 vanilla javascript 访问环境变量
- java - 解析字符串并将字符串文字打印到屏幕
- php - 使用 DOMDocument 更改小胡子模板中链接的 href
- python - Pygame井字游戏逻辑?我该怎么做
- mule - Mulesoft Anypoint 工作室骡子调色板文本丢失
- aws-lambda - ServerlessError:部署无服务器 AWS apigateway 时文档部分已存在
- azure-data-factory - 如何在datafactory中设置具有浮点值的变量字符串
- python-3.x - 获取日期为 YYYY-MM 减去一个月
- slack-api - Slack API:我可以获取用户的所有未读消息吗?
- mysql - 使用 docker 镜像时如何更改 MySQL 的默认配置?