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

nuhkoca

06/27/2022, 1:31 PM
Hello, how can I animate the content whenever the keyboard opens/hides? Compose version:
1.2.0-rc02
s

Stylianos Gakis

06/27/2022, 1:45 PM
I’d say look into accompanist insets, but I do see that it’s now deprecated in favor of the androidx.compose solution. Couldn’t find the official docs for that I think, maybe somewhere like here.
👍 1
s

sindrenm

06/27/2022, 1:56 PM
accompanist-insets is deprecated, but accompanist-insets-ui is not. You'll want to use that. 🙂
👌 3
Specifically, the Animated Insets Support section should provide what you want.
👌 3
n

nuhkoca

06/27/2022, 2:06 PM
ohh awesome thanks all!
4 Views