【发布时间】:2019-06-23 20:15:59
【问题描述】:
我想更改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,),
),
【问题讨论】: