Gradient-Widgets
Gradient-Widgets copied to clipboard
No way to set background of GradientProgressIndicator
Facing the same issue, It'd be useful if you add this feature.
Hello ๐๐ผ, can you please explain what do you mean by a background to the GradientProgressIndicator? the item must have colors depending on its gradient.
Hey,
The default widget LinearProgressIndicator
has a property called backgroundColor
, which will help us to change the track colour.
What happens now is the begin gradient colour is automatically applied as the track colour.
because it it should represent the colors of the gradient assigned to to, otherwise, where will the gradient colors go to the progress?
What happens now is the begin gradient colour is automatically applied as the track colour.
in this case, you can change the begin gradient color to change the background of the progress.
All this does is uses two colours for the progress bar but what Iโm asking for is a separate background colour and the gradient only for the progress.
This is wanted:
This is what happens right now:
Sorry for the image quality hope it sets the point across.
P.S. I did a work around in your code and achieved what I wanted can share the code with you if youโre interested ๐
This is wanted:
LinearProgressIndicator
should have a background color because it has the progress color and the background color. GradientProgressIndicator
here has a background color, but as you can see it is outside of the gradient colors. Second, there need to be color matching between the gradient colors and the background color in order to have a good UI.
P.S. I did a work around in your code and achieved what I wanted can share the code with you if youโre interested ๐
I'll stick with my options. thanks ๐
But still, I'll say that a package should be flexible enough to be customized as per all use cases and having a background color behind the progress bar (even outside the gradient) is a common use case.
I'll stick with my options. thanks ๐
No problem. :)
if as you would suggest, the library should be flexible, can you please make a pull request for this feature so that I can test it? @muhammadidrees
Sure just give me some time I'll get to it as soon as I am free. @bluemix
@muhammadidrees Ok, take your time...
Sorry to barge into your little conversation. I've also needed this feature and created a PR. @bluemix let me know what you think. cc: @muhammadidrees https://github.com/bluemix/Gradient-Widgets/pull/19
dear @arielbh, #19 has conflicts
and also having a more than 2 color gradient would be nice! but is this dead? in the meanwhile i will try the fork of arielbh....