[FIXED] I am working on a custom Indication in Com...
# compose
o
[FIXED] I am working on a custom Indication in Compose, and listening to Focus changes from my InteractionSource, End result is to have the TextField glowing when in focus(Focus == Assuming the keyboard is open ?) and normal when not in focus. For some reasons my TextField never emits a value of true when keyboard opens for that TextField when clicked.
Here's the Indication 👆
Copy code
val isPressed = interactionSource.collectIsPressedAsState()
        val isHovered = interactionSource.collectIsHoveredAsState()
        val isFocused = interactionSource.collectIsFocusedAsState()
This is how i collect the state
Fixed: I did not add the interaction source to the TextField which was used by the indication.
Copy code
interactionSource = interactionSource
Debugger is your friend 😄