androidandroid-jetpack-compose

Jetpack Compose: Keyboard covers the TextField in dialog


In short: using Jetpack Compose, the keyboard overlaps the TextField when it is opened in an AlertDialog. I've tried everything I've found:

I've created a GitHub repository with a demo project: Demo project - TextField covered by keyboard

Can you help me to understand what am I missing? I'm completely out of ideas.

Screenshots:
Dialog with TextField TextField covered by the keyboard

UPDATE - SOLVED

Based on the answer of @Shubham Thorat, I used adjustPan in the following way:


Solution

  • Can you try this one:

    android:windowSoftInputMode="adjustPan"