using a LinearProgressIndicator here I get a value...
# compose
y
using a LinearProgressIndicator here I get a value 0.99668324f (very close to 1f). the Ui of it shows that its done but its not 1f yet I would like the user to see a difference between a value very close to 1f and 1f, is that possible with that composable?
c
I would just use different colors.
y
what do you mean by different colors its white when there is no progress
c
The color of the progress bar itself - make it darker or lighter orange when it’s done.
3
Copy code
val progress = remember { ...calculate progress }

LinearProgressIndicator(
  progress = progress,
  color = if (progress < 1) Color.red else Color.green
)
👍 2