ursus
10/15/2023, 10:36 PMOutlinedTextField by just basically copy pasting the source and animateColorAsState everything I see, but one thing made me think, if this is a good idea
Why does the TextFieldColors return State<Color>?
val textColor = textStyle.color.takeOrElse {
colors.textColor(enabled).value
}
@Stable
interface TextFieldColors {
@Composable
fun textColor(enabled: Boolean): State<Color>
why not simply Color?Zach Klippenstein (he/him) [MOD]
10/16/2023, 2:57 AMursus
10/16/2023, 1:37 PMStylianos Gakis
10/16/2023, 1:57 PMSo.. is it a bad idea to add the animateColorAsState
animateColorAsState also returns State<Color>? What do you think is a bad idea here?