Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter: change CircularProgressIndicator color [duplicate]

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,),
      ),
like image 562
Farhana Naaz Ansari Avatar asked Jul 17 '26 02:07

Farhana Naaz Ansari


1 Answers

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

CircularProgressIndicator(valueColor: new AlwaysStoppedAnimation<Color>(Colors.blue))
like image 63
SebSer Avatar answered Jul 18 '26 18:07

SebSer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!