Mehdi Haghgoo
02/27/2022, 3:59 AMPaul Woitaschek
02/27/2022, 9:36 AMMehdi Haghgoo
02/27/2022, 9:38 AMPaul Woitaschek
02/27/2022, 9:42 AMhfhbd
02/27/2022, 9:53 AM@Composable
fun dummy() {
var foo = 1
TextField("Hello")
foo = 2
if (foo == 2) {
TextField("2")
}
You should not expect seeing both TextField, and should use mutableState
, which tells Compose to recompose (update) the execution.
AFAIK ripple animation is a class containing mutableStates via a delegate, so updating these local
variables are fine