3

I want to change CircularProgressIndicator color but unable to change here is the code still showing blue color.

CircularProgressIndicator(backgroundColor: Colors.grey[100],strokeWidth: 2.0,)

I have tried with theme but it is also not working.

child: Theme(
            data: Theme.of(context).copyWith(
            backgroundColor: Colors.grey[100]
            ),
        child: CircularProgressIndicator(strokeWidth: 2.0,),
      ),
Farhana Naaz Ansari
  • 7,524
  • 26
  • 65
  • 105

1 Answers1

8

Perhaps like this: https://stackoverflow.com/a/50075652/10956936

CircularProgressIndicator(valueColor: new AlwaysStoppedAnimation<Color>(Colors.blue))
SebSer
  • 194
  • 1
  • 5