gumil
03/05/2020, 7:50 PM@Model
classes. I suspect that the noinline
might have affected this. It works okay using a plain buttonLeland Richardson [G]
03/05/2020, 7:54 PMgumil
03/05/2020, 7:55 PM@Model
data class CounterState(var count: Int = 0)
@Composable
fun Counter(state: CounterState) {
TextButton(
onClick = {
state.count++
}
) {
Text(
text = "I've been clicked ${state.count} times"
)
}
}
Leland Richardson [G]
03/05/2020, 9:50 PMgumil
03/05/2020, 10:03 PMLeland Richardson [G]
03/05/2020, 10:07 PMgumil
03/05/2020, 10:10 PM