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
Chrimaeon
05/24/2024, 11:50 AM
I would just use different colors.
y
youssef hachicha
05/24/2024, 1:43 PM
what do you mean by different colors its white when there is no progress
c
Chrimaeon
05/24/2024, 1:45 PM
The color of the progress bar itself - make it darker or lighter orange when it’s done.
✅ 3
Chrimaeon
05/24/2024, 1:46 PM
Copy code
val progress = remember { ...calculate progress }
LinearProgressIndicator(
progress = progress,
color = if (progress < 1) Color.red else Color.green
)