当前位置:网站首页>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)),
),
边栏推荐
猜你喜欢

穿越派·派盘V3.14发版啦!

JS基础知识

oracle利用as of timestamp语句找回误删除的数据

BGP实验

使用muse-ui制作省市选择器(ts)

js高级进阶知识

C# 如何关联键盘按钮 (KeyChar/KeyCode值 KeyPress/KeyDown事件 区别)
![[Deep Learning] TensorFlow Learning Road One: Introduction to TensorFlow and Implementation of Linear Regression and Logistic Regression](/img/1d/68ebf357a93d718cfdbefeaaf623fa.png)
[Deep Learning] TensorFlow Learning Road One: Introduction to TensorFlow and Implementation of Linear Regression and Logistic Regression

第四章 SQL与关系数据库基本操作(上)

关于在core中使用minio对象存储
随机推荐
MySQL中varchar 的最大长度
oracle利用as of timestamp语句找回误删除的数据
为什么依赖注入出现的频率这么高?
MySQL导入导出数据库
最新:新冠疫苗多久起效?能保护多久?
蓝桥杯历届试题-合根植物(并查集)
node版本一键切换
Light-Head R-CNN 阅读笔记
js高级进阶知识
了解CI/CD流水线
C# ToString
常用的正则表达式(不定期更新)
ADXL345静止时振动值不归零的问题
ADXL345调试心得
第五章 数据链路层与局域网
工作中经常遇到的232、485、TTL信号
第二章 关系数据库概述
爬虫学习整理
[深度学习] - 网络模型训练过程的 loss 变化分析 (loss / val_loss / test_loss)
JS基础知识