Mahmoo
01/22/2024, 2:07 PMval maxSize = remember {
Modifier.fillMaxSize()
.clip(RoundedCornerShape(12))
.background(Color.White)
.clickable {
}
}
Mahmoo
01/22/2024, 2:08 PMMahmoo
01/22/2024, 2:11 PMval alpha by animateFloatAsState(1f, tween(easing = LinearEasing), label = "")
val maxSize = remember {
Modifier.fillMaxSize()
.clip(RoundedCornerShape(12))
.background(Color.White)
.clickable {
}
}
Box(modifier = maxSize.then(Modifier.alpha(alpha = alpha))) {
CircularProgressIndicator(
modifier = Modifier.align(Alignment.Center)
)
}
So only the animation modifier recomposes rest all remains sameMahmoo
01/22/2024, 2:12 PMZach Klippenstein (he/him) [MOD]
01/22/2024, 7:01 PMZach Klippenstein (he/him) [MOD]
01/22/2024, 7:02 PMMikolaj
01/23/2024, 8:14 AMModifiers are designed to be used with remembering their chains everywhere
? Is there info to be found in some docs on this topic?Zach Klippenstein (he/him) [MOD]
01/23/2024, 6:32 PM