程序在等待异步操作完成的过程中,非常有必要给予用户适当的反馈,这个时候就可以使用进度条。
进度条
CircularProgressIndicator()
CircularProgressIndicator(), CircularProgressIndicator( backgroundColor: Colors.yellow, //背景颜色 valueColor: AlwaysStoppedAnimation(Colors.red), //显示的颜色 ),

LinearProgressIndicator()
LinearProgressIndicator(), LinearProgressIndicator( backgroundColor: Colors.yellow, //背景颜色 valueColor: AlwaysStoppedAnimation(Colors.red), //显示的颜色 ), LinearProgressIndicator( value: 0.8, //手动控制进度 backgroundColor: Colors.yellow, //背景颜色 valueColor: AlwaysStoppedAnimation(Colors.red), //显示的颜色 ),

CupertinoActivityIndicator()
CupertinoActivityIndicator(), CupertinoActivityIndicator(radius: 24 //大小 )

浙公网安备 33010602011771号