How to show a widget over the keyboard in Flutter?

276 Views Asked by At

I want to place a widget on top of everything (a loading widget), but I can not manage to place it over the keyboard too.

I've tried some methods, but the widget is always under the keyboard. Is there any way to place it over it?

Example using all kind of Stacks

Using stacks, I can not position the loading over the keyboard.

What I want:

enter image description here

What I super sadly get:

enter image description here

1

There are 1 best solutions below

0
On BEST ANSWER

This is not really an answer, but I can't write comments yet.

You won't be able to do that with Flutter (I think) as the keyboard is handled by the Android System itself.

Anyway, Blocking the phone's UI is not something that should be even tried in most circumstances. Blocking just your app's UI though, is the right approach whenever you have some processo to wait for.

Be careful when designing your ideas. The user is free to use his/her other resources as he or she sees fit and you shouldn't try to control what your user does outside of your application.