当前位置:网站首页>flutter loading、Progress进度条
flutter loading、Progress进度条
2022-08-09 00:04:00 【{丸の子}】
Flutter Progress
1 条形无固定值进度条
//LinearProgressIndicator不具备设置高度的选项,可以使用SizedBox来设置高度与宽度
SizedBox(
child: LinearProgressIndicator(),
height: 8.0,
width: 200,
),
2 圆形无固定值进度条
SizedBox(
child: CircularProgressIndicator(),
height: 44.0,
width: 44.0,
),
3 条形固定值进度条
new SizedBox(
//限制进度条的高度
height: 6.0,
//限制进度条的宽度
width: 200,
child: new LinearProgressIndicator(
//0~1的浮点数,用来表示进度多少;如果 value 为 null 或空,则显示一个动画,否则显示一个定值
value: 0.3,
//背景颜色
backgroundColor: Colors.yellow,
//进度颜色
valueColor: new AlwaysStoppedAnimation<Color>(Colors.red)),
),
4 圆形固定值进度条
//CircularProgressIndicator不具备设置高度的选项,可以使用SizedBox来设置高度与宽度
new SizedBox(
//限制进度条的高度
height: 40.0,
//限制进度条的宽度
width: 40,
child: new CircularProgressIndicator(
//0~1的浮点数,用来表示进度多少;如果 value 为 null 或空,则显示一个动画,否则显示一个定值
value: 0.3,
//背景颜色
backgroundColor: Colors.yellow,
//进度颜色
valueColor: new AlwaysStoppedAnimation<Color>(Colors.red)),
),
边栏推荐
猜你喜欢
随机推荐
APUE---chap4文件和目录---4.2~4.18(stat/access/umask/chmod/remove/rename)
STP---生成树协议总结
js实现继承的几种方式
最新:新冠疫苗多久起效?能保护多久?
[QNX Hypervisor 2.2用户手册]10.12 ser8250vdev ser8250 options
第四章 SQL与关系数据库基本操作(上)
第六章 数据库安全与保护
Jupyter代码补全、修改路径、增添解释器
Idea碰到的问题总结
如何使用加密套件?
NPM配置阿里下载源
如何快速简单的设置你的vscode背景图
Ubuntu下Docker安装Redis (快速简便)
[Deep Learning] TensorFlow Learning Road One: Introduction to TensorFlow and Implementation of Linear Regression and Logistic Regression
win10电脑:电脑触摸板控制
sessionStorage值改变后,页面利用window.sessionStorage.getItem()获取到的值不会更新
第六章 物理层
最新7篇数据科学/深度学习/CNN/知识图谱/文本匹配等中英文综述论文推介(附下载)
vs2012快捷键
穿越派·派盘 + 静读天下 = 顶级电子书阅读器