Suppose there's an button defined as follows
val btnEnabled by remember { mutableStateOf(true) }
...
Button(
colors = ButtonDefaults.buttonColors(
background = Color.Yellow
disabledBackgroundColor = Color.Black ),
enabled = btnEnabled
) {
...
}
When the value of btnEnabled is changed, the button's background will immediately change rigidly. Any way to make it an animated transition?