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

Lucca Beurmann

02/14/2022, 5:28 PM
Hello guys, does anyone knows if there's a way to scroll the bottomsheet up when the keyboard opens so it wont cover the bottomsheet?
c

Colton Idle

02/14/2022, 5:39 PM
I have a feeling that this is less about the bottom sheet and more about the text field not staying in focus. There's an open bug for that. I would retest your bug once this bug is fixed: https://issuetracker.google.com/issues/190539358 I've been following Zach Ks work on this for a bit. I think we're close to having a fix but it's not there yet.
l

Lucca Beurmann

02/14/2022, 5:54 PM
Solved
Actually the problem was the Accompanist Insets (probably i was using it wrong), i removed the insets providers and now it's working fine
c

Colton Idle

02/14/2022, 6:13 PM
nice. what version of compose are you using. 1.2.0-alpha03?
l

Lucca Beurmann

02/14/2022, 6:14 PM
Copy code
1.2.0-alpha02
👍 1
all i had to do was add this activity property in the manifest:
Copy code
android:windowSoftInputMode="adjustResize"
c

Colton Idle

02/14/2022, 6:15 PM
Gotcha. Yeah thats in the accompanist inset docs.
But even still. Zach K did some work on text fields recently hence I asked what version you were using.
2 Views