Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard not pushing bottom sheet content upwards #95

Closed
benkashbase opened this issue May 31, 2020 · 13 comments
Closed

Keyboard not pushing bottom sheet content upwards #95

benkashbase opened this issue May 31, 2020 · 13 comments

Comments

@benkashbase
Copy link

benkashbase commented May 31, 2020

Am using this library inside my modal bottom sheet. However, I noticed that on pop up, the keyboard does not push the content upwards, it just covers the content. How do I fix this because it is inconvenient for users.

padding: EdgeInsets.only(
bottom: MediaQuery.of(context).viewInsets.bottom),

Using this code inside my container pushes it up actually but it causes an unwanted top white space above the keyboard.

@diegoveloper
Copy link
Owner

diegoveloper commented May 31, 2020 via email

@benkashbase
Copy link
Author

this is a link to the gist file:

https://gist.github.com/benkashbase/3d0aa0917583059fe65e153570ca450b

@diegoveloper
Copy link
Owner

Did you fix the issue?

@benkashbase
Copy link
Author

this is a link to the gist file:

https://gist.github.com/benkashbase/3d0aa0917583059fe65e153570ca450b

@benkashbase benkashbase reopened this May 31, 2020
@benkashbase
Copy link
Author

benkashbase commented May 31, 2020

nope. I noticed that it doesn't push the content up if I set a height to my container but it shows full height if no height is set and I don't want that

@scortumee
Copy link

same problem here. The keyboard overlays the textField

@diegoveloper
Copy link
Owner

diegoveloper commented Jun 18, 2020 via email

@scortumee
Copy link

ezgif-3-9571ae27bfc9
I tried the first example. I will add the minimal code soon. Above is what is happening. Thanks for your quick response @diegoveloper

@scortumee
Copy link

Hey @diegoveloper, sorry about the delay. Below is the minimal code to reproduce the issue. Please run it on both android and ios. You will see what is going on. I have noticed the bug appears when TextField is at the bottom of the screen and the keyboard does not push up the TextField properly.

https://gist.github.com/scortumee/5aa651591cb0cd047e9fd11bc95e33c9

keyboard_actions: ^3.2.0
flutter: v1.16
device: iPhone 8

Thanks

@diegoveloper
Copy link
Owner

diegoveloper commented Jun 25, 2020 via email

@scortumee
Copy link

@diegoveloper You mean wrap 'ListView' with 'KeyboardActions'?
In other words, put 'ListView' as a child of 'KeyboardActions'

@diegoveloper
Copy link
Owner

diegoveloper commented Jun 25, 2020 via email

@scortumee
Copy link

@diegoveloper Thanks, wrapping 'ListView' with 'KeyboardActions' worked! The keyboard pushes the TextField smoothly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants