The LinearProgressIndicator documentation helpfully displays the existence of a valueColor property and even mentions "To specify a constant color use: new AlwaysStoppedAnimation(color).", but if I try to set the color I get an error that LinearProgressIndicator has no instance setter for valueColor and the constructor for the class only accepts a key and a numerical value for the progress amount.
If I want a LinearProgressIndicator with a custom color do I need to create my own class? Is there really no way to specify this?
If you want to set a constant color you can use :
CircularProgressIndicator( valueColor: AlwaysStoppedAnimation<Color>(Colors.white), )
1.4m articles
1.4m replys
5 comments
57.0k users