直播源码,下拉刷新和上划预加载新内容

直播源码,下拉刷新和上划预加载新内容实现的相关代码

自定义下拉刷新头部样式

 

1
ClassicHeader classicHeader() {<br>  return ClassicHeader(<br>    releaseText: '松开手刷新',<br>    refreshingText: '刷新中',<br>    completeText: '刷新完成',<br>    failedText: '刷新失败',<br>    idleText: '下拉刷新',<br>    completeIcon: const Icon(Icons.done, color: Colors.red),<br>    idleIcon: const Icon(Icons.arrow_downward, color: Colors.red),<br>    releaseIcon: const Icon(Icons.refresh, color: Colors.red),<br>    failedIcon: const Icon(Icons.error, color: Colors.red),<br>    refreshingIcon: cirProInt(),<br>  );<br>}

旋转动画

 

1
<br>Container cirProInt() {<br>  return Container(<br>    child: CircularProgressIndicator(<br>      valueColor: AlwaysStoppedAnimation(Colors.red),<br>      strokeWidth: 4.0,<br>      backgroundColor: Colors.blue,<br>    ),<br>    width: 20.0,<br>    height: 20.0,<br>  );<br>}

 

 自定义上拉加载更多底部样式

  . 简单定义

 

1
<br>ClassicFooter classicFooter() {<br>  return ClassicFooter(<br>    height: 100.0,<br>    loadingText: '加载中...',<br>    noDataText: '暂无数据',<br>    failedText: '加载失败',<br>    idleText: '上拉加载',<br>  );<br>}

 

以上就是直播源码,下拉刷新和上划预加载新内容实现的相关代码, 更多内容欢迎关注之后的文章

 

posted @   云豹科技-苏凌霄  阅读(40)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 25岁的心里话
· 按钮权限的设计及实现
点击右上角即可分享
微信分享提示