escodro
03/16/2021, 6:11 PMTextState
is basically set again to TextFieldValue()
. Is it the correct approach?
Because in my case, I have a more complex State (more properties may be added in the future):
@Stable
@Parcelize
internal class CategoryBottomSheetState(val initialName: String, val initialColor: Int) :
Parcelable {
@IgnoredOnParcel
var name by mutableStateOf(initialName)
@IgnoredOnParcel
var color by mutableStateOf(initialColor)
}
What do you think?
Thanks a lot in advance! 😊