https://kotlinlang.org logo
#compose
Title
# compose
b

brabo-hi

01/31/2022, 6:36 PM
Hi all, what is the best way to animate
show/hide
of keyboard ?
Copy code
val keyboardController = LocalSoftwareKeyboardController.current
keyboardController?.hide() // How to animate the visibility ?
should we do something like
Copy code
AnimatedVisibility(visible = shouldHide) {
        keyboardController?.hide()
    }
z

Zun

01/31/2022, 9:35 PM
c

Colton Idle

01/31/2022, 10:14 PM
I think accompanist inset has a way to do this if im not mistaken?
b

brabo-hi

01/31/2022, 10:45 PM
@Zun thanks
8 Views