https://kotlinlang.org logo
#compose
Title
# compose
u

ursus

03/23/2024, 1:20 AM
when using
CircularProgressIndicator
the
@Preview
shows it as it looks a brief moment after the animation starts Basically a tiny bit of the clipped circle, which is confusing at the first sight ("Huh, is it there at all?") Is there a way have it look like 90% of the way?
e

ephemient

03/23/2024, 2:43 AM
Copy code
if (LocalInspectionMode.current) {
    CircularProgressIndicator(
        progress = 0.9f
    )
} else {
    CircularProgressIndicator()
}
u

ursus

03/23/2024, 9:21 PM
okay so I should wrap it
MyCircularProgressIndicator
and make sure to only use that in my codebase?
w

Wout Werkman

03/24/2024, 8:57 AM
If you are talking about Compose Multiplatform previews, you can vote for FL-24873.
The following example shows that the user does not see the runtime exception that would've been thrown later, all you can see is the first frame of the
CircularProgressIndicator
2 Views