我想更改CircularProgressIndicator
颜色,但无法更改这里是代码仍然显示蓝色。
CircularProgressIndicator(backgroundColor: Colors.grey[100],strokeWidth: 2.0,)
我已经尝试过theme
但它也不起作用。
child: Theme(
data: Theme.of(context).copyWith(
backgroundColor: Colors.grey[100]
),
child: CircularProgressIndicator(strokeWidth: 2.0,),
),
也许是这样的: https://stackoverflow.com/a/50075652/10956936
CircularProgressIndicator(valueColor: new AlwaysStoppedAnimation<Color>(Colors.blue))