How can I stack a Container over a keyboard similar to WhatsApp more section just like the below gif?
Alternatively, I tried using a bottom sheet, but bottom sheet closed the keyboard and then opened it up.
How can I stack a Container over a keyboard similar to WhatsApp more section just like the below gif?
Alternatively, I tried using a bottom sheet, but bottom sheet closed the keyboard and then opened it up.
Unfortunately as other answers have said if you really want this you have to use a Custom In-App Keyboard, even though it's a lot of work.
Drawing over the keyboard is indeed possible on Android, but it is not possible at all on iOS. If you check the same functionality in WhatsApp on iOS it does not do that animation since iOS does not allow it.
The issue here is that the keyboard is controlled by the phone's operating system so Flutter is not allowed to render over it, just as you can't render over the status bar at the top of the screen.
This article at Medium titled "Custom In-App Keyboard in Flutter" by someone called "Suragch" might help you.
The best solution for this is hiding the keyboard using the focus node:
void _unFocusKeyboard() {
FocusScope.of(context).unfocus();
}
I think is an animation to a "Container" at the bottom of the screen.
© 2022 - 2024 — McMap. All rights reserved.