[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.
val isPressed = interactionSource.collectIsPressedAsState()
val isHovered = interactionSource.collectIsHoveredAsState()
val isFocused = interactionSource.collectIsFocusedAsState()
This is how i collect the state
oianmol
07/31/2022, 2:01 PM
Fixed: I did not add the interaction source to the TextField which was used by the indication.