This is pretty clever! One issue is that if there is a TextInput() at the top of your screen (where you put the green Box(), for example) and if that is focused first, then scrolling to the end is the wrong thing to do - your top TextInput() will be hidden as you type into it. The LaunchedEffect(imeState) will always scroll to the end when the IME Keyboard is visible. Any ideas? It seems like this gets significantly more complicated....
You are right, For your usecase you need to change the scrolling amount depending on which textfield is focused, which requires more code and more handling to achieve a simple task
Hey ! I have one movie searching app.. ther is only one activity and in that top of the activity i have just Search movie EditText Box so I want to open my keyboard with the cursor ponting to the EditText Box how can I do that?
So if the keyboard it at the bottom and if we need to move up the whole layout get pushed up. But in my case only if the content is more the layout need to push up otherwise the layout should get adjusted with the content same as in whatsapp chat app. What to do in that case
Didn't work for me for some reason.
I want to and Dev Internship from where I can do that ?
This is really the easiest way to do this. Thanks for the info
This is pretty clever! One issue is that if there is a TextInput() at the top of your screen (where you put the green Box(), for example) and if that is focused first, then scrolling to the end is the wrong thing to do - your top TextInput() will be hidden as you type into it. The LaunchedEffect(imeState) will always scroll to the end when the IME Keyboard is visible. Any ideas? It seems like this gets significantly more complicated....
You are right,
For your usecase you need to change the scrolling amount depending on which textfield is focused, which requires more code and more handling to achieve a simple task
This ks exactly what I thought about . Thanks a lot .
Hey !
I have one movie searching app.. ther is only one activity and in that top of the activity i have just Search movie EditText Box
so I want to open my keyboard with the cursor ponting to the EditText Box
how can I do that?
Search about requesting focus on an edit text
@@Landofcoding Ok done it... Thankyou 🤗🤗
Nice solution bro, liked and suscribed
perfect explanation and helpful content, thanks for them
يعطيك العافية الله يكثر خيرك
So if the keyboard it at the bottom and if we need to move up the whole layout get pushed up. But in my case only if the content is more the layout need to push up otherwise the layout should get adjusted with the content same as in whatsapp chat app. What to do in that case
very helpful work like a charm, but the scroll state stays at the end, does not reset when I come back to the screen
Thannks bro, you helped me a lot 👏
Not working for me I do same but not working
how to apply this to ModalBottomSheet if it contain Textfields
Use imePadding
Interesting bro I was also searching for this
Hopefully you found what you were looking for
thanks a lot dude, that was helpful. 👏
Very useful. Thanks for sharing.
Thank you very much for this
Please provide me github link that rememberImeState code
In the description dude
Perfect Explanation 🎉🎉🎉
Thank you so much
Working guys perfectly
very helpful video
It was helpful🙌
That was helpful 👏
Thanks!
te quiero mucho
Very useful. Thanks for sharing.
Didn't work for me for some reason.