颤振:更改循环进度指示器颜色



我想更改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))

最新更新