Counter
The number animates as it changes with the +/- buttons.
var count by remember { mutableIntStateOf(0) }
Row {
Button(onClick = { count-- }) { Text("-") }
AnimatedContent(targetState = count, label = "count") { value ->
Text("$value", style = MaterialTheme.typography.displaySmall)
}
Button(onClick = { count++ }) { Text("+") }
}