Check if TextfieldValue is accepting space as characters
I am using OutlineTextField and the value is taken from TextFieldValue. I have a save button on top of it which gets enabled if there is entered text and disabled vice versa. I have validated using below code
https://i.stack.imgur.com/tzmOZ.png▾
val textFieldState = remember {
mutableStateOf(TextFieldValue(EMPTY))
}
onSaveClickEnabled = textFieldState.value.text.isNotEmpty(),
But the above code is not validating if space entered initially. It enables...