Tim Malseed
10/19/2022, 6:21 AMAndré Kindwall
10/19/2022, 6:31 AMTim Malseed
10/19/2022, 6:34 AMButton {
if (loading) { CircularProgressIndicator() }
Text(text = "my text")
}
But, the progress indicator fits the button height - and when it’s displayed, the button width animates.
Sounds specific, but I’m sure it was easy to find last time, and now I’m feeling quite lazy and don’t want to figure it out again 😅Pedro Alberto
10/19/2022, 6:42 AMcircularProgressModifier: Modifier = Modifier.size(16.dp),
CircularProgressIndicator(modifier = circularProgressModifier, color = contentColor, strokeWidth = 2.dp)
Pedro Alberto
10/19/2022, 6:44 AMBox(modifier = Modifier
.wrapContentSize()
.background(Color.Transparent)) {
Button() {
if (loading) {
CircularProgressIndicator(modifier = circularProgressModifier, color = contentColor, strokeWidth = 2.dp)
}
Pedro Alberto
10/19/2022, 6:50 AMColton Idle
10/19/2022, 1:57 PMColton Idle
10/19/2022, 1:59 PMChris Sinco [G]
10/21/2022, 7:24 PMColton Idle
10/25/2022, 2:03 AM